firmware/src/gps/Air530GPS.h
2022-01-24 18:39:17 +00:00

23 lines
541 B
C++

#pragma once
#include "NMEAGPS.h"
/**
* A gps class thatreads from a NMEA GPS stream (and FIXME - eventually keeps the gps powered down except when reading)
*
* When new data is available it will notify observers.
*/
class Air530GPS : public NMEAGPS
{
protected:
/// If possible force the GPS into sleep/low power mode
virtual void sleep() override;
/// wake the GPS into normal operation mode
virtual void wake() override;
private:
/// Send a NMEA cmd with checksum
void sendCommand(const char *str);
};