Implemented first Hangar-Service
Dependencies: CalibrateMagneto QuaternionMath
Fork of SML2 by
Diff: GPS.h
- Revision:
- 27:e71a2e4e6e3f
- Child:
- 46:fd5a62296b12
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GPS.h Tue Apr 21 13:34:25 2015 +0000 @@ -0,0 +1,27 @@ +#ifndef _H_GPS_H +#define _H_GPS_H + +#include "mbed.h" + +/// Manages the nano hornet GPS add-on chip. +class GPS +{ +public: + /// Constructor + /// @param pc The serial (UART) port used to communicate with the GPS. Data is only received, nothing is sent to this port. + GPS(Serial const &pc); + + class Delegate + { + virtual void gpsSync() = 0; + }; + + void powerOn(); + void powerOff(); + +private: + Serial* uart; + +}; + +#endif//_H_GPS_H \ No newline at end of file