GPS failed checksum
September 2, 2010
Well first of all Hi everyone, although i've been visiting the site for a while this is my first post on LMR so here goes.
After seeing patrickmccabe's "Fundamentals of a GPS guided vehicle" tutorial i decided to give it a go. I got the code supplied in the tutorial to work without any trouble but when i started making some changes and adding to the code i ran into a few problems.
Im using the Arduino Mega, EM-406 GPS module, I2C compass, TEXTSTAR serial lcd and a few pushbuttons. I was trying to add a sort of menu to the start of the code so that i could save waypoints. The menu seems to work ok except that now im getting a lot of failed checksums, about 10 or 12 while im saving the waypoints and when the loop starts running within a minute or so the failed checksums get up to 10s of thousands' and the arduino seems to reset and the menu in void setup starts again.
Its think it must be something that i've added to the code but im not great at coding so i dont know what. I've tried using separate power for the gps, buttons and lcd in case that was causing the arduino to reset. I also tried disconnecting the lcd to see if that was it. I've tried removing bits of the menu code and adding delays here and there but i don't really know what I'm doing so it could easily be something fairly simple. Anyway i thought i'd post the code and see anyone could see what the problem might be or give me some ideas of things to try to solve the problem. Any help would be much appreciated.
|AGV_editing (patrick's new code).pde||9.71 KB|