More UBX fixes

This commit is contained in:
Thomas Göttgens
2022-05-18 18:16:23 +02:00
parent dd8111e737
commit 5e82423331
4 changed files with 30 additions and 1 deletions

View File

@@ -17,6 +17,19 @@ static int32_t toDegInt(RawDegrees d)
return r;
}
bool NMEAGPS::factoryReset()
{
#ifdef GPS_UBLOX
// Factory Reset
byte _message_reset[] = {0xB5, 0x62, 0x06, 0x09, 0x0D, 0x00, 0xFF,
0xFB, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xFF, 0xFF, 0x00, 0x00, 0x17, 0x2B, 0x7E};
_serial_gps->write(_message_reset,sizeof(_message_reset));
delay(1000);
return true;
#endif
}
bool NMEAGPS::setupGPS()
{
GPS::setupGPS();