Show Posts
|
|
Pages: [1]
|
|
4
|
Topics / Robotics / compass directions and discrepencies
|
on: February 13, 2011, 03:34:08 pm
|
|
i am writing some code for handleing a compass sensor to get the value that the robot is off course by. i can tak a value from the sensor from 0 - 359. the problem comes when you are currently heading at 350 degrees or so and the course you should be on is at say 10. the numbers cant be taken away and im not sure how to universaly say "if you are off to the right, turn left a bit" and vice versa. not sure on this one. all ideas apreciated
|
|
|
|
|