0

how do I compare coordinates I receive from the GPS module with the coordinates that I had hardcoded into the arduino, for example:

if (GPS reading <= hardcoded) movecarforward(); else movecarback();

the coordinates I get keep going up and down which makes it difficult for me to compare and excute the function below.Please help.....

asked Oct 29, 2015 at 18:07

1 Answer 1

1

You could check out the codes for this reverse geocaching project at https://learn.adafruit.com/reverse-geocache-engagement-box/software or the dog collar project at https://learn.adafruit.com/gps-dog-collar to get some help. For my GPS project I just wanted to display the distance and speed, so all I had to do was save the current location, subtract it from the previous location and add it to distanceTraveled. It'd be helpful if you could share your code here.

answered Oct 29, 2015 at 18:29

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.