implementação do sgam_mdw baseado na placa NUCLEO FZ429ZI para ser testada
Dependencies: MPU6050 Grove_temperature
Diff: sensor/gps/GPS.h
- Revision:
- 17:8789ab4067a6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sensor/gps/GPS.h Sat Jul 20 14:02:50 2019 -0300 @@ -0,0 +1,32 @@ +#ifndef SGAM_MDW_SENSOR_GPS_H +#define SGAM_MDW_SENSOR_GPS_H + +#include "sgam_mdw.h" +#include "mbed.h" + +class GPSData { +public: + float longitude; + float latitude; + float meters; + + GPSData(){ } + ~GPSData(){ } +}; + +// FAKE Gps to send fake values ! +class GPS: Sensor<GPSData> { +public: + GPS(); + virtual ~GPS(); + + virtual int initialize(); + virtual int finalize(); + + virtual GPSData* getValue(); + virtual const char* getName(); + +private: + void getLocation(GPSData* data); +}; +#endif