Greetings,
I'm new to the arduino world and need a nudge in the right direction.
I'm building a custom autopilot (marine)
I'm reading and parsing NMEA sentences from a Garmin chartplotter
I have modified the code I found here:
http://www.arduino.cc/playground/Tutorials/GPS
Credit
Igor Gonz[ch65533]lez Mart[ch65533]n. 05-04-2007
igor.gonzalez.martin@gmail.com
English translation by djmatic 19-05-2007
I changed:
char comandoGPR[7] = "$GPRMC";
To:
char comandoGPR[7] = "$GPRMB";
And changed to code to get a nice output:
$GPRMB,A,0.00,L,,JOHNS-PASS,2746.6550,N,08247.4703,W,**.656,**6.1,,V,A*00
Status(A=OK,V=KO): A
Cross-track error: 0.00
Turn: L
null:
Waypoint: JOHNS-PASS
Destination Lat: 2746.6550
Destination Lat: N
Destination Long: 08247.4703
Destination Long: W
Range to Dest: **.656 not far :)
Bearing to Dest: **6.1 in that direction :)
Velocity:
v: V
n: A
How do I store these values and call them up elsewhere in my code?
I want to read these and store them in variables. display them on an LCD and run procedures for steering based on "cross track" and "turn"
Any sugestions would be great!
Road