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 "Task8Temp.h"
guiott 2:8917036cbf69 2
guiott 2:8917036cbf69 3 void TempTask(void)
guiott 2:8917036cbf69 4 {/**
guiott 2:8917036cbf69 5 *\brief TASK 8 used to temporary test some functions
guiott 2:8917036cbf69 6 */
guiott 2:8917036cbf69 7 static int TempAng;
guiott 2:8917036cbf69 8 while (1)
guiott 2:8917036cbf69 9 {
guiott 2:8917036cbf69 10 os.WaitEvent(TEMP_EVT);
guiott 2:8917036cbf69 11
guiott 2:8917036cbf69 12 if((TempAng+=5) >=360)
guiott 2:8917036cbf69 13 {
guiott 2:8917036cbf69 14 TempAng=0;
guiott 2:8917036cbf69 15 }
guiott 2:8917036cbf69 16 Ang[Mag]=TempAng;
guiott 2:8917036cbf69 17 Ang[Dir]=360-TempAng;
guiott 2:8917036cbf69 18 Ang[Gps]=180-TempAng;
guiott 2:8917036cbf69 19 printf("%i %i %i \n", Ang[0], Ang[1], Ang[2]);
guiott 2:8917036cbf69 20 }
guiott 2:8917036cbf69 21 }