ark5230
Advanced Member level 3
I am trying to implement a GPS module with AVR Atmega32.
I am finding difficulty in splitting the text read from GPS module, namely the $GPGGA line.
I need to split segments of this line that are separated by commas and use the latitude, longitude and altitude for further processing.
Any help in few line code to split this line will be very useful.
A Typical line is like this:
$GPGGA,124545.000,1954.3693,N,07520.6932,E,1,05,3.7,606.4,M,-64.3,M,,0000*7E
I am poor in C and C++ and also in AVR GCC.
I am finding difficulty in splitting the text read from GPS module, namely the $GPGGA line.
I need to split segments of this line that are separated by commas and use the latitude, longitude and altitude for further processing.
Any help in few line code to split this line will be very useful.
A Typical line is like this:
$GPGGA,124545.000,1954.3693,N,07520.6932,E,1,05,3.7,606.4,M,-64.3,M,,0000*7E
I am poor in C and C++ and also in AVR GCC.