Anderson Cunha / sgam_mdw_NUCLEOF429ZI_impl

Dependencies:   MPU6050 Grove_temperature

Dependents:   sgam_mdw_test

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GPS.h Source File

GPS.h

00001 #ifndef SGAM_MDW_SENSOR_GPS_H
00002 #define SGAM_MDW_SENSOR_GPS_H
00003 
00004 #include "sgam_mdw.h"
00005 #include "mbed.h"
00006 
00007 class GPSData {
00008 public:
00009     float longitude;
00010     float latitude;
00011     float meters;
00012 
00013     GPSData(){ }
00014     ~GPSData(){ }
00015 };
00016 
00017 // FAKE Gps to send fake values !
00018 class GPS: Sensor<GPSData> {
00019 public:
00020     GPS();
00021     virtual ~GPS();
00022 
00023     virtual int initialize();
00024     virtual int finalize();
00025 
00026     virtual GPSData* getValue();
00027     virtual const char* getName();
00028 
00029 private:
00030     void getLocation(GPSData* data);
00031 };
00032 #endif