Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Location.h
00001 #ifndef LOCATION_H 00002 #define LOCATION_H 00003 #include "mbed.h" 00004 #include "GPSTracker.h" 00005 #include "AbstractReporter.h" 00006 00007 00008 class Location: public AbstractReporter 00009 { 00010 public: 00011 Location(): gpsTracker(), timer() { 00012 oldValues[0] = 0; 00013 oldValues[1] = 0; 00014 oldValues[2] = 0; 00015 timer.start(); 00016 } 00017 virtual ~Location() {} 00018 virtual bool init() { return true; } 00019 virtual const char* name() const { return "GPS"; } 00020 virtual int read(char*, size_t, char*, size_t); 00021 private: 00022 GPSTracker gpsTracker; 00023 float oldValues[3]; 00024 Timer timer; 00025 }; 00026 00027 #endif /* LOCATION_H */
Generated on Sat Jul 16 2022 07:10:59 by 1.7.2