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

Task8Temp.cpp

Committer:
guiott
Date:
2012-01-31
Revision:
2:8917036cbf69

File content as of revision 2:8917036cbf69:

#include "Task8Temp.h"

void TempTask(void)
{/**
 *\brief TASK 8 used to temporary test some functions 
 */
 static int TempAng;
 while (1)
 {
  os.WaitEvent(TEMP_EVT); 
  
  if((TempAng+=5) >=360)
  {
    TempAng=0;
  }
  Ang[Mag]=TempAng;
  Ang[Dir]=360-TempAng;
  Ang[Gps]=180-TempAng;
  printf("%i %i  %i \n", Ang[0], Ang[1], Ang[2]);
 }
}