mirror of
https://github.com/meshtastic/firmware.git
synced 2025-05-05 05:13:10 +00:00
24 lines
458 B
C++
24 lines
458 B
C++
#pragma once
|
|
|
|
#include "../concurrency/PeriodicTask.h"
|
|
#include "GPS.h"
|
|
#include "Observer.h"
|
|
#include "TinyGPS++.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 NMEAGPS : public GPS
|
|
{
|
|
TinyGPSPlus reader;
|
|
|
|
uint32_t lastUpdateMsec = 0;
|
|
|
|
public:
|
|
virtual bool setup();
|
|
|
|
virtual void loop();
|
|
};
|