Greetings,
http://jouni.miettunen.googlepages.com/sensoranalyzer
Version History
* 1.1 2008-05-08 Visualize raw sensor data. Bars idea based on Aapo Rista modified verlet.py
* 1.0 2008-05-07 Based on Sensor Sample + debug code to see raw sensor data
Tested with pyS60 1.4.3 in N82.
Sample Code
* Not worth much as sample code, but a quick and dirty tool to help figuring out what the raw Sensor API data means. Now I know
* Debug code is included, but beware: it generates a HUGE file on your phone. By default I turn debugging off before uploading the file.
* This is 1/3 of the "final" application, but just wanted to get it out right now. It's already pretty useful as is. Final version should be even better!
Sensor Analyzer
See what kind of raw data Sensor API gives you, when you move the device.
First bar is data_1 (RED), second bar is data_2 (GREEN) and third bar is data_3 (BLUE). At top you see max value for each data and at bottom min value. Bottom row shows current value for each.
The bars scale automatically, which might be confusing, but keeps all data on-screen and everything comparable between each others. Scaling is shown at left side somehow. The numbers are all-time max/min values, but scaling is actually based on absolute max value, to keep data on-screen.
You can reset the max/min limits by pressing select key.
Uses cases:
* Try to document Sensor API
* Experiment with movement related algorithms
* Search for limits
Usage - Keyboard shortcuts:
1 - Toggle data channel 1 on/off
2 - Toggle data channel 2 on/off
3 - Toggle data channel 3 on/off
Enter - Reset collected data, start again
# - Save a screen snapshot on disk
Enjoy,
--jouni on lunchbreak


Reply With Quote
I'll try to add that to next version somehow.
Some parts are hardcoded for 240x320, some parts are automatically scaling. Added on todo list...



