Guido Ottaviani / Mbed 2 deprecated LeonardoMbos

Dependencies:   mbos Watchdog TextLCD mbed ConfigFile

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Task1Gps.h Source File

Task1Gps.h

00001 #include "mbed.h"
00002 #include "Common.h"
00003 #include "nmea/nmea.h"
00004 #include "mbos.h"
00005 #include "Tasks.h"
00006 
00007 Serial gps(NC, GPSRX);
00008 
00009 //GPS prototypes
00010 void GpsStringParse(void);
00011 void GpsDist(void);
00012 void Deg2DegMinSec(double DecDeg, DegMinSec *DecSec);
00013 void GpsDist(void);
00014 void Coordinates(void);
00015 void GpsSerialIsr(void);
00016 void trace_h(const char *str, int str_size);
00017 void error_h(const char *str, int str_size);
00018 double trunc(double v);
00019 
00020 extern mbos os;
00021 extern int PcMonitor;
00022 extern Serial pc;
00023 
00024 nmeaINFO info;                  // Store GPS information 
00025 nmeaPARSER parser;
00026   
00027 DistAzimuth Path;
00028 nmeaPOS Pos[2];
00029 nmeaINFO Dest;
00030 
00031 char msgBuff[2][BUFF_SIZE];     // Receive data buffer from GPS module
00032                                 // Two buffer for double buffering
00033                                 
00034 volatile int writePointer = 0;  // Write pointer for active data buffer
00035 volatile unsigned int bufferSelect = 0; // Active buffer selector
00036 
00037 int size;
00038 double latitude, longitude;
00039 double degrees, minutes;