zoomx / cellbots

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

Modify CellbotRemote to use radians instead of degrees #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run CellbotRemote connected to any bot
2. Moving the phone does not drive the robots

What is the expected output? What do you see instead?
The code here starting on line 170 uses degrees and all values need to be 
adjusted for radians instead due to API changes in SL4A and Android.
http://code.google.com/p/cellbots/source/browse/trunk/android/python/cellbotRemo
te.py

Original issue reported on code.google.com by rhickman on 19 Sep 2010 at 4:00

GoogleCodeExporter commented 9 years ago
See this for more info on Android and radians

See: 
http://developer.android.com/reference/android/hardware/SensorManager.html#getOr
ientation(float[], float[])

Original comment by rhickman on 19 Sep 2010 at 4:00