Hi there
I have a EB-85 gps connected to an Arduino
I used TinyGPS from http://arduiniana.org/libraries/tinygps/ and
was able to obtain NMEA sentences from my GPS
and also display then on the serial monitor of the Arduino IDE
I then modified the code by adding a Haversine function for calculating distance between 2 points
But i am having trouble accessing the position data from the GPS as input to my Haversine function
I am trying to access the values of lat and lon from
gps.get_position(&lat, &lon, &age);
but i keep getting an error
Attached is a copy of my code if it helps
my problem starts from line 55 of the code
A major part of the code was directly copied from TinyGPS
Replies
Short description of TinyGPS
"TinyGPS is designed to provide most of the NMEA GPS functionality I imagine an Arduino user would want – position, date, time, altitude, speed and course – without the large size that seems to accompany similar bodies of code. To keep resource consumption low, the library avoids any floating point dependency and ignores all but a few key GPS fields."
http://arduiniana.org/libraries/tinygps/