mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-13 16:55:08 +00:00
23 lines
541 B
C++
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);
|
|
};
|