GPS Navigation
Hatem
Posts: 20
Hello Everyone, I got the Parallax GPS module and was wondering if it is possible to have the Boe-Bot navigate using GPS data? If so, can you please provide me with a simple code that i could use for simple navigation. Thank you very much.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Although the actual process is a lot more complicated, but I'll explain it in much more simpler terms. I'm not an expert so if your a pro be gentle!
1. First you have to define where you want to go. Usually this is set into your program (they are known as waypoints).
2. Next, you have to define where you start off at. You can get this information from your GPS receiver.
3. Those two points, where you want to be and where you are, can be represented as vectors, which are in x,y format (latitude, longitude), so if you subtract where you are from where you want to be, you'll get a third vector, which connects those two points.
4. Next, you have to figure out the angle, so you'll use the inverse tangent function to get the angle of this vector.
5. Fifth, you compare this angle with your current bearing (which is given by the GPS receiver) and use the resulting difference to do calculations for your actual actuation (motors, servos, etc).
6. Then, you keep running this loop until you hit the waypoint.
There's alot of nuances, such as the fact that you're in the western hemisphere (if you're in the US), taking into account the angles relative to north, clockwise or counterclockwise, etc, but this is the general idea. There could be another way to do it, but this is just how I was taught.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
1) If I have all the sixteen pins in use (GPS, Bluetooth, Infrared sensors, and the Ping sensor) how many batteries do I need. I currently have one Boe-boost battery attached.
2) I replaced the original BS2 chip with the BS2px24 and my Boe-Bot was acting funny. I am not very good with this so any information would greatly help. I thought I need it the most advanced chip with this project because of all the modules I have connected and running at the same time.
3) If I want to use the GPS module to navigate, do I need to have the RAW pin pulled high or low.
·
Thank you very much for all the help and information provided.
2) The BS2px is faster than the BS2 and the various timing constants like the Baud constants are different. Make sure you've adjusted them or you won't be able to communicate with the GPS or Bluetooth adapters.
3) Read the GPS documentation. The RAW pin causes the GPS adapter to provide its data in very different formats.