Hi All!
I am trying to do something very basic (probably!) but can't see to be able to do it :S !
All I want is to output the Latitude and Longitude from my lassen iQ GPS, using the TinyGPS library, to the serial port (eventually I'll output it to a different port as it will be sent to the radio).
The code i'm using is below:
#include "TinyGPS.h"
TinyGPS gps;
long lat, lon;
unsigned long fix_age, time, date, speed, course;
unsigned long chars;
unsigned short sentences, failed_checksum;
void setup() {
Serial.begin(4800);
}
void loop()
{
// retrieves +/- lat/long in 100000ths of a degree
gps.get_position(&lat, &lon, &fix_age);
// time in hhmmsscc, date in ddmmyy
gps.get_datetime(&date, &time, &fix_age);
// returns speed in 100ths of a knot
speed = gps.speed();
// course in 100ths of a degree
course = gps.course();
Serial.println(THIS IS WHERE I WANT TO PRINT LAT & LONG!)
}
Where the Serial.println is, that is where I want to be able to say "Lat: _______, Long: ______".
Can someone please help me out!
Thanks
