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

Common.h

Committer:
guiott
Date:
2012-02-03
Revision:
3:a2f9eb3b8a16
Parent:
2:8917036cbf69

File content as of revision 3:a2f9eb3b8a16:

#define PCBAUD 115200
#define GPSRX p10
#define GPSBAUD 4800
#define BUFF_SIZE 256

#define LCD_LIGHT_DIM_TIMER 5000
#define SHOW_LCD_TIMER 500
#define TEMP_TIMER 500
#define WDT_TIMER 250
#define WDT_TIMEOUT .3f


typedef struct _DegMinSec
{
    int Deg;         
    int Min; 
    double Sec;        
 } DegMinSec;

typedef struct _DistAzimuth
{
    double Dist; 
    double Azimuth[2];
 } DistAzimuth;
 
 enum DirLab{Mag, Dir, Gps};