Thread created automatically to discuss a document in the White Papers.
Code and Walkthrough for Global Positioning System using IR Sensors by Grommit
Thread created automatically to discuss a document in the White Papers.
Code and Walkthrough for Global Positioning System using IR Sensors by Grommit
Just a couple of questions and comments:
Satellite GPS does not use the angle the signal is traveling at, it uses the distance from the satellite to the device
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;
and the definition will only happen the first time the function is called, so the variable won’t be changed by the definition/declaration statement in successive function calls.
I like the use of a 4th sensor for error correction, pretty cool. If you have used this system, how did it work, if not, post about it when you do.
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.