Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MPU6050 Grove_temperature
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
Generated on Fri Jul 15 2022 01:20:41 by
1.7.2