i have problem with coding my friend....this code as though stuck and not process until void loop...please help me how fix that
Robot Navigation Project.ino (10.6 KB)
i have problem with coding my friend....this code as though stuck and not process until void loop...please help me how fix that
Robot Navigation Project.ino (10.6 KB)
My advice is to add some Serial.println() statements at strategic locations in your sketch and then run the sketch with Tools > Serial Monitor open. That will allow you to see what is happening in your program.
It seems likely that gps.encode() is never returning true, since we would expect some serial output after that no matter what. So you might want to print out what is coming in from the GPS unit by replacing this line:
if (gps.encode(ss.read())){
with:
const int gpsData = ss.read();
Serial.print(gpsData);
if (gps.encode(gpsData)){
thank you for your response i will try your advice to my friend