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

Committer:
guiott
Date:
Fri Feb 03 16:29:52 2012 +0000
Revision:
3:a2f9eb3b8a16
Parent:
2:8917036cbf69

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
guiott 2:8917036cbf69 1 #include "mbed.h"
guiott 2:8917036cbf69 2 #include "Common.h"
guiott 2:8917036cbf69 3 #include "mbos.h"
guiott 2:8917036cbf69 4 #include "Tasks.h"
guiott 2:8917036cbf69 5 #include "TextLCD.h"
guiott 2:8917036cbf69 6 #include "nmea/nmea.h"
guiott 2:8917036cbf69 7
guiott 2:8917036cbf69 8 // LCD prototypes
guiott 2:8917036cbf69 9 void ShowPathLcd(void);
guiott 2:8917036cbf69 10 int CmpRead(void);
guiott 2:8917036cbf69 11 void TempTask(void);
guiott 2:8917036cbf69 12 void LcdLightDimTask(void);
guiott 2:8917036cbf69 13 void showDirLcd(int Indx);
guiott 2:8917036cbf69 14 void showMenuLcd1(void);
guiott 2:8917036cbf69 15 void showMenuLcd(void);
guiott 2:8917036cbf69 16 void showSatLcd(void);void showDirLcd(int Indx);
guiott 2:8917036cbf69 17 void showMenuLcd1(void);
guiott 2:8917036cbf69 18 void showMenuLcd(void);
guiott 2:8917036cbf69 19 void showSatLcd(void);
guiott 2:8917036cbf69 20 void showInfoLcd(void);
guiott 2:8917036cbf69 21 void Deg2DegMinSec(double DecDeg, DegMinSec *DecSec);
guiott 2:8917036cbf69 22
guiott 2:8917036cbf69 23 extern mbos os;
guiott 2:8917036cbf69 24 extern nmeaINFO info;
guiott 2:8917036cbf69 25 extern DistAzimuth Path;
guiott 2:8917036cbf69 26 extern nmeaINFO Dest;
guiott 2:8917036cbf69 27 extern double latitude, longitude;
guiott 2:8917036cbf69 28 extern int Menu;
guiott 2:8917036cbf69 29 extern int SetTimeOk;
guiott 2:8917036cbf69 30
guiott 2:8917036cbf69 31 TextLCD lcd(p12, p11, p24, p23, p22, p21, TextLCD::LCD20x4); // rs, e, d4-d7
guiott 2:8917036cbf69 32
guiott 2:8917036cbf69 33 const char *Lab[]={"MAG", "DIR", "GPS"}; //Label to display in compass view
guiott 2:8917036cbf69 34 int CmpPos[]={0,15,0}; //Compass position
guiott 2:8917036cbf69 35 int Ang[3]; //Compass angle values