www2000 / sf9domahrs

Automatically exported from code.google.com/p/sf9domahrs
0 stars 0 forks source link

trouble with python gui #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

Hi,
I can stream all 9dofs with a generic serial port terminal, but when I use
the python code, it doesn't work.

With a baud rate of 57600, absolutely nothing happens, so I changed the
baud rate to 38400.  When I run the code in IDLE, I get this: 
_____________________________________________________

>>>

9DOF IMU Test Firmware v15 

==========================

[1]Accelerometer: ADXL345 

[2]Magnetometer: HMC5843 

[3]Gyroscope: LPR530 and LY530 

[4]Raw 

[5]Self Test

#then nothing for a while, so I hit ctrl+c to break...then I get this msg

Traceback (most recent call last):
  File "/home/benjamin/Desktop/IMU_Razor9DOF.py", line 87, in <module>
    print line
  File "/usr/lib/python2.6/idlelib/PyShell.py", line 1244, in write
    self.shell.write(s, self.tags)
  File "/usr/lib/python2.6/idlelib/PyShell.py", line 1233, in write
    raise KeyboardInterrupt
KeyboardInterrupt
>>> 
_______________________________

Essentially it gets stuck in the while loop and repeatedly does "print
line"  but the line is empty. 

Any ideas about what is wrong??

Thanks,
Benjamin

Original issue reported on code.google.com by betform...@gmail.com on 31 May 2010 at 7:18

GoogleCodeExporter commented 8 years ago
Hey,

i was in the same situation, i justed changed a few lines: 

http://pastebin.com/aD2DUuQb

Line 14, 19-21 changed/added

Here it's very "nervous"...

Hope this helps

Stefan

Original comment by stefan.m...@gmail.com on 16 Jun 2010 at 6:33

Attachments:

GoogleCodeExporter commented 8 years ago
But imho we need to switch off the Testmode - but how?

Original comment by stefan.m...@gmail.com on 16 Jun 2010 at 6:34

GoogleCodeExporter commented 8 years ago
Do I understand this right, you are trying to use the phyton GUI provided here 
with the original firmware? This will not work, the pyhton gui reads in the 
angle values from the AHRS firmware. The original/shipped firmware doesn't 
provide those.

Original comment by christop...@gmail.com on 26 Jul 2010 at 2:41

GoogleCodeExporter commented 8 years ago
Hi;
works fine thank you for providing us with these codes.
I don't know python at all, I am trying to understand the code.
It helps me a lot if you could please answer 2 of my questions:
1- Why the edited version doesn't save a .txt file?
2- Are these data raw out put? 

Thanks

Original comment by sbbakh...@gmail.com on 7 Oct 2010 at 2:12

GoogleCodeExporter commented 8 years ago
Thanks Christoph,

i somehow did not realize that i had to flash it. 

This solved it.

Original comment by stefan.m...@gmail.com on 7 Oct 2010 at 7:00