For a project im working on i will be processing gps and working out distances etc.
I figure the best way to do this will be to program an 08M2 to output via serial a set of gps nmea strings in a constant loop. Obviously when it restarts the loop the gps data will jump back in time but that shouldn't be a problem for basic testing of grabbing a GPRMC string and extracting data from it.
I figure the best way to do this will be to program an 08M2 to output via serial a set of gps nmea strings in a constant loop. Obviously when it restarts the loop the gps data will jump back in time but that shouldn't be a problem for basic testing of grabbing a GPRMC string and extracting data from it.
Code:
hsersetup B4800_4, %00
main:
hserout 0, ("$GPGSV")
hserout 0, ("$GPGSV")
hserout 0, ("$GPGGA")
hserout 0, ("$GPGSA")
hserout 0, ("$GPVTG")
hserout 0, ("$GPGLL")
hserout 0, ("$GPRMC,081055.04,A,5053.1981,N,00117.3796,W,60.27,129.07,040507,,,A*77")
hserout 0, ("$GPGSV")
hserout 0, ("$GPGSV")
hserout 0, ("$GPGGA")
hserout 0, ("$GPGSA")
hserout 0, ("$GPVTG")
hserout 0, ("$GPGLL")
hserout 0, ("$GPRMC,081055.94,A,5053.1848,N,00117.3683,W,59.57,131.98,040507,,,A*7D")
hserout 0, ("$GPGGA")
hserout 0, ("$GPVTG")
hserout 0, ("$GPGLL")
hserout 0, ("$GPRMC,081056.94,A,5053.1740,N,00117.3480,W,59.52,133.93,040507,,,A*74")
hserout 0, ("$GPGSV")
hserout 0, ("$GPGSV")
hserout 0, ("$GPGGA")
hserout 0, ("$GPVTG")
hserout 0, ("$GPGLL")
hserout 0, ("$GPRMC,081057.94,A,5053.1649,N,00117.3291,W,57.68,134.09,040507,,,A*78")
hserout 0, ("$GPGGA")
hserout 0, ("$GPGSA")
hserout 0, ("$GPVTG")
hserout 0, ("$GPGLL")
hserout 0, ("$GPRMC,081058.94,A,5053.1505,N,00117.3134,W,58.26,134.90,040507,,,A*75")
hserout 0, ("$GPGSV")
hserout 0, ("$GPGSV")
hserout 0, ("$GPGGA")
hserout 0, ("$GPVTG")
hserout 0, ("$GPGLL")
hserout 0, ("$GPRMC,081059.94,A,5053.1386,N,00117.2972,W,57.86,135.99,040507,,,A*7F")
hserout 0, ("$GPGGA")
hserout 0, ("$GPVTG")
hserout 0, ("$GPGLL")
hserout 0, ("$GPRMC,081100.94,A,5053.1258,N,00117.2817,W,57.79,137.50,040507,,,A*75")
hserout 0, ("$GPGSV")
hserout 0, ("$GPGSV")
hserout 0, ("$GPGGA")
hserout 0, ("$GPGSA")
hserout 0, ("$GPVTG")
hserout 0, ("$GPGLL")
hserout 0, ("$GPRMC,081102.04,A,5053.1115,N,00117.2655,W,57.82,139.24,040507,,,A*75")
hserout 0, ("$GPGGA")
hserout 0, ("$GPVTG")
hserout 0, ("$GPGLL")
hserout 0, ("$GPRMC,081102.94,A,5053.0996,N,00117.2528,W,57.91,141.13,040507,,,A*7E")
hserout 0, ("$GPGSV")
hserout 0, ("$GPGSV")
hserout 0, ("$GPGGA")
hserout 0, ("$GPVTG")
hserout 0, ("$GPGLL")
hserout 0, ("$GPRMC,081103.94,A,5053.0862,N,00117.2394,W,57.77,143.03,040507,,,A*7F")
hserout 0, ("$GPGGA")
hserout 0, ("$GPGSA")
hserout 0, ("$GPVTG")
hserout 0, ("$GPGLL")
hserout 0, ("$GPRMC,081105.04,A,5053.0715,N,00117.2249,W,57.57,144.66,040507,,,A*78")
hserout 0, ("$GPGSV")
hserout 0, ("$GPGSV")
hserout 0, ("$GPGGA")
hserout 0, ("$GPVTG")
hserout 0, ("$GPGLL")
hserout 0, ("$GPRMC,081106.04,A,5053.0580,N,00117.2116,W,57.45,145.98,040507,,,A*7F")
goto main