|
|
|
![]() |
|
|||||||
|
||||||||
This document contains the entire code for team #115's Global Positioning System, which uses four IR sensors mounted on servos in order to determine the robot's exact position and orientation, along with an error function which gives an estimate of the confidence in the given values. The walkthro...
This document contains the entire code for team #115's Global Positioning System, which uses four IR sensors mounted on servos in order to determine the robot's exact position and orientation, along with an error function which gives an estimate of the confidence in the given values. The walkthrough explains clearly every step of the code and all the math used in order to accomplish the task. The code is extremely well commented and includes all math functions used in the program.
Any questions should be directed to Shrenik Shah, at shrenik86@comcast.net.
1084731752ircodewalkthrough.pdf
20-05-2004 20:54
Max LobovskyJust a couple of questions and comments:
1. Satellite GPS does not use the angle the signal is traveling at, it uses the distance from the satellite to the device
2. I believe that you do not need to use your "firstrun" variable and loop to initialize the static variables, i believe you can just define statics when you declare them
static int myVar = 5;
20-05-2004 21:22
Astronouth7303
Very cool. My only concern is speed with floats. As maxlobovsky said, it can cause it to miss cycles. My thought is to do this either in parts (state machine), or do getdata and putdata in the middle of it.