Add setDGNSSConfiguration
This commit is contained in:
@@ -6235,6 +6235,23 @@ bool SFE_UBLOX_GNSS::setStaticPosition(int32_t ecefXOrLat, int32_t ecefYOrLon, i
|
||||
return (setStaticPosition(ecefXOrLat, 0, ecefYOrLon, 0, ecefZOrAlt, 0, latlong, maxWait));
|
||||
}
|
||||
|
||||
// Set the DGNSS differential mode
|
||||
bool SFE_UBLOX_GNSS::setDGNSSConfiguration(sfe_ublox_dgnss_mode_e dgnssMode, uint16_t maxWait)
|
||||
{
|
||||
packetCfg.cls = UBX_CLASS_CFG;
|
||||
packetCfg.id = UBX_CFG_DGNSS;
|
||||
packetCfg.len = 4;
|
||||
packetCfg.startingSpot = 0;
|
||||
|
||||
payloadCfg[0] = (uint8_t)dgnssMode;
|
||||
payloadCfg[1] = 0; // reserved0
|
||||
payloadCfg[2] = 0;
|
||||
payloadCfg[3] = 0;
|
||||
|
||||
return ((sendCommand(&packetCfg, maxWait)) == SFE_UBLOX_STATUS_DATA_SENT); // We are only expecting an ACK
|
||||
}
|
||||
|
||||
|
||||
// Module Protocol Version
|
||||
|
||||
//Get the current protocol version of the u-blox module we're communicating with
|
||||
|
||||
@@ -534,6 +534,13 @@ enum sfe_ublox_talker_ids_e
|
||||
SFE_UBLOX_MAIN_TALKER_ID_GQ
|
||||
};
|
||||
|
||||
// The DGNSS differential mode
|
||||
enum sfe_ublox_dgnss_mode_e
|
||||
{
|
||||
SFE_UBLOX_DGNSS_MODE_FLOAT = 2, // No attempts are made to fix ambiguities
|
||||
SFE_UBLOX_DGNSS_MODE_FIXED // Ambiguities are fixed whenever possible
|
||||
};
|
||||
|
||||
//-=-=-=-=-
|
||||
|
||||
#ifndef MAX_PAYLOAD_SIZE
|
||||
@@ -829,6 +836,7 @@ public:
|
||||
// For Lat/Lon/Alt the units are: degrees^-7, degrees^-9, degrees^-7, degrees^-9, cm, 0.1mm
|
||||
bool setStaticPosition(int32_t ecefXOrLat, int8_t ecefXOrLatHP, int32_t ecefYOrLon, int8_t ecefYOrLonHP, int32_t ecefZOrAlt, int8_t ecefZOrAltHP, bool latLong = false, uint16_t maxWait = 250);
|
||||
bool setStaticPosition(int32_t ecefXOrLat, int32_t ecefYOrLon, int32_t ecefZOrAlt, bool latLong = false, uint16_t maxWait = 250);
|
||||
bool setDGNSSConfiguration(sfe_ublox_dgnss_mode_e dgnssMode = SFE_UBLOX_DGNSS_MODE_FIXED, uint16_t maxWait = defaultMaxWait); // Set the DGNSS differential mode
|
||||
|
||||
//Read the module's protocol version
|
||||
uint8_t getProtocolVersionHigh(uint16_t maxWait = defaultMaxWait); //Returns the PROTVER XX.00 from UBX-MON-VER register
|
||||
|
||||
Reference in New Issue
Block a user