bug #376 wip - we now kill gps power when it is supposed to be asleep

This commit is contained in:
Kevin Hester
2020-10-05 15:29:26 +08:00
parent b072eec4ac
commit 3c1c11e439
7 changed files with 69 additions and 60 deletions

View File

@@ -17,11 +17,6 @@ class UBloxGPS : public GPS
public:
UBloxGPS();
/**
* Returns true if we succeeded
*/
virtual bool setup();
/**
* Reset our GPS back to factory settings
*
@@ -30,6 +25,11 @@ class UBloxGPS : public GPS
bool factoryReset();
protected:
/**
* Returns true if we succeeded
*/
virtual bool setupGPS();
/** Subclasses should look for serial rx characters here and feed it to their GPS parser
*
* Return true if we received a valid message from the GPS
@@ -57,6 +57,7 @@ class UBloxGPS : public GPS
/// If possible force the GPS into sleep/low power mode
virtual void sleep();
virtual void wake();
private:
/// Attempt to connect to our GPS, returns false if no gps is present