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 Task3Lcd.h Source File

Task3Lcd.h

00001 #include "mbed.h"
00002 #include "Common.h"
00003 #include "mbos.h"
00004 #include "Tasks.h"
00005 #include "TextLCD.h"
00006 #include "nmea/nmea.h"
00007 
00008 // LCD prototypes
00009 void ShowPathLcd(void);
00010 int CmpRead(void);
00011 void TempTask(void);
00012 void LcdLightDimTask(void);
00013 void showDirLcd(int Indx);
00014 void showMenuLcd1(void);
00015 void showMenuLcd(void);
00016 void showSatLcd(void);void showDirLcd(int Indx);
00017 void showMenuLcd1(void);
00018 void showMenuLcd(void);
00019 void showSatLcd(void);
00020 void showInfoLcd(void);
00021 void Deg2DegMinSec(double DecDeg, DegMinSec *DecSec);
00022 
00023 extern mbos os;
00024 extern nmeaINFO info;
00025 extern DistAzimuth Path;
00026 extern nmeaINFO Dest;
00027 extern double latitude, longitude;
00028 extern int Menu;
00029 extern int SetTimeOk;
00030 
00031 TextLCD lcd(p12, p11, p24, p23, p22, p21, TextLCD::LCD20x4); // rs, e, d4-d7
00032 
00033 const char *Lab[]={"MAG", "DIR", "GPS"}; //Label to display in compass view
00034 int CmpPos[]={0,15,0}; //Compass position
00035 int Ang[3]; //Compass angle values