A porting of a GPS decoding and presenting program within the mbos RTOS. It is not a definitive application but a study program to test NMEA full decoding library and a first approach to an RTOS. Many thanks to Andrew Levido for his support and his patience on teaching me the RTOS principles from the other side of the Earth. It uses NMEA library by Tim (xtimor@gmail.com) ported by Ken Todotani (http://mbed.org/users/todotani/) on public mbed library (http://mbed.org/users/todotani/programs/GPS_nmeaLib/5yo4h) also available, as original universal C library, on http://nmea.sourceforge.net

Dependencies:   mbos Watchdog TextLCD mbed ConfigFile

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Task6Pc.h Source File

Task6Pc.h

00001 #include "mbed.h"
00002 #include "Common.h"
00003 #include "mbos.h"
00004 #include "Tasks.h"
00005 #include "nmea/nmea.h"
00006 
00007 void Deg2DegMinSec(double DecDeg, DegMinSec *DecSec);
00008 
00009 extern mbos os;
00010 extern nmeaINFO info;
00011 extern int SetTimeOk;
00012 extern double latitude, longitude;
00013 extern nmeaPOS Pos[];
00014 extern DistAzimuth Path;
00015 
00016 int PcMonitor=0;    // to control serial out on USB serial
00017 
00018 Serial pc(USBTX, USBRX);