Guido Ottaviani / Mbed 2 deprecated LeonardoMbos

Dependencies:   mbos Watchdog TextLCD mbed ConfigFile

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Task8Temp.cpp Source File

Task8Temp.cpp

00001 #include "Task8Temp.h"
00002 
00003 void TempTask(void)
00004 {/**
00005  *\brief TASK 8 used to temporary test some functions 
00006  */
00007  static int TempAng;
00008  while (1)
00009  {
00010   os.WaitEvent(TEMP_EVT); 
00011   
00012   if((TempAng+=5) >=360)
00013   {
00014     TempAng=0;
00015   }
00016   Ang[Mag]=TempAng;
00017   Ang[Dir]=360-TempAng;
00018   Ang[Gps]=180-TempAng;
00019   printf("%i %i  %i \n", Ang[0], Ang[1], Ang[2]);
00020  }
00021 }