View Single Post
helex's Avatar
Posts: 543 | Thanked: 802 times | Joined on Apr 2010 @ Germany
#12
Originally Posted by caco3 View Post
You can start it on the Xterm with "python /opt/ShipRolling/main.py".
Please let me know if you see an error there.
You should see tons of lines like "Time since last refresh: 248 ms".
Or when you run it with "python /opt/ShipRolling/main.py debug", it will also show the acceleration values.

Can you also use the built in "Write to file" function and send me the file?
Out of that it should be easy to see if doesnt work properly.
I created a log with the debug parameter and exported some values to the csv. (needed a minute to find the file)
The log and the csv file are not from the same session. In the beginning I moved the Device around about 90degree in each direction and after the half I put the N900 flat on the table. I've looked also for a minute in your sourcecode. If the smoothing algorythm is working (have not checked in detail) on your device I don't know why this shouldn't work on my device. I use exactly the same code at my own python script to read from the sensor.
Hmm... strange.
Attached Files
File Type: zip ShipRolling.ZIP (152.4 KB, 99 views)