sparkfun/SparkFun_u-blox_GNSS_v3

[Feature Request] Add support for UBX ESF-RESETALG

PaulZC opened this issue · 1 comments

PaulZC commented

I should have looked at this before now...

The library already has a function to reset the IMU mount alignment: resetIMUalignment

// Reset ESF automatic IMU-mount alignment
bool DevUBLOXGNSS::resetIMUalignment(uint16_t maxWait)
{
packetCfg.cls = UBX_CLASS_ESF;
packetCfg.id = UBX_ESF_RESETALG;
packetCfg.len = 0;
packetCfg.startingSpot = 0;
// This is a special case as we are only expecting an ACK but this is not a CFG message
return (sendCommand(&packetCfg, maxWait, true) == SFE_UBLOX_STATUS_DATA_SENT); // We are only expecting an ACK
}

I'm closing this as "Done"...