|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
White Paper Discuss: Code and Walkthrough for Global Positioning System using IR Sensors
Thread created automatically to discuss a document in the White Papers.
Code and Walkthrough for Global Positioning System using IR Sensors by Grommit |
|
#2
|
||||
|
||||
|
Re: White Paper Discuss: Code and Walkthrough for Global Positioning System using IR Sensors
Just 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 Code:
static int myVar = 5; 3. Have you run this code on a FRC? It seems like it, along with the neccesary parts of the default code, could start to cause "default_routine" to start missing cycles as some people have mentioned has happened, if this code is running in every cycle in "default_rountine". 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. Last edited by Max Lobovsky : 20-05-2004 at 21:33. |
|
#3
|
|||||
|
|||||
|
Re: White Paper Discuss: Code and Walkthrough for Global Positioning System using IR Sensors
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|