This commit is contained in:
Kevin Hester
2020-10-05 14:43:44 +08:00
parent ff9b49ddaa
commit b072eec4ac
10 changed files with 39116 additions and 63 deletions
+4 -1
View File
@@ -12,6 +12,7 @@
class UBloxGPS : public GPS
{
SFE_UBLOX_GPS ublox;
uint8_t fixType = 0;
public:
UBloxGPS();
@@ -35,6 +36,9 @@ class UBloxGPS : public GPS
*/
virtual bool whileIdle();
/** Idle processing while GPS is looking for lock */
virtual void whileActive();
/**
* Perform any processing that should be done only while the GPS is awake and looking for a fix.
* Override this method to check for new locations
@@ -55,7 +59,6 @@ class UBloxGPS : public GPS
virtual void sleep();
private:
/// Attempt to connect to our GPS, returns false if no gps is present
bool tryConnect();