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

Task3Lcd.h

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

File content as of revision 3:a2f9eb3b8a16:

#include "mbed.h"
#include "Common.h"
#include "mbos.h"
#include "Tasks.h"
#include "TextLCD.h"
#include "nmea/nmea.h"

// LCD prototypes
void ShowPathLcd(void);
int CmpRead(void);
void TempTask(void);
void LcdLightDimTask(void);
void showDirLcd(int Indx);
void showMenuLcd1(void);
void showMenuLcd(void);
void showSatLcd(void);void showDirLcd(int Indx);
void showMenuLcd1(void);
void showMenuLcd(void);
void showSatLcd(void);
void showInfoLcd(void);
void Deg2DegMinSec(double DecDeg, DegMinSec *DecSec);

extern mbos os;
extern nmeaINFO info;
extern DistAzimuth Path;
extern nmeaINFO Dest;
extern double latitude, longitude;
extern int Menu;
extern int SetTimeOk;

TextLCD lcd(p12, p11, p24, p23, p22, p21, TextLCD::LCD20x4); // rs, e, d4-d7

const char *Lab[]={"MAG", "DIR", "GPS"}; //Label to display in compass view
int CmpPos[]={0,15,0}; //Compass position
int Ang[3]; //Compass angle values