Open jmachuca77 opened 4 years ago
Upon further testing this happens also if the only compass enabled is an external compass. Even if it is on I2C and it is correctly detected.
This TLOG shows an attempt to start compass calibration with only the external compass enabled.
We just need to send a NACK here: https://github.com/ArduPilot/ardupilot/blob/master/libraries/AP_Compass/AP_Compass_Calibration.cpp#L116 if no calibrations were started, as well as NACK here: https://github.com/ArduPilot/ardupilot/blob/master/libraries/AP_Compass/AP_Compass_Calibration.cpp#L99
This TLOG shows how after enabling an internal compass and starting calibration it starts correctly.
note that in these logs COMPASS_ENABLE=0
maybe we don't display a message to the user when they try to do a compass calibration when compass-enable = 0.
Bug report
Issue details When using only a UAVCAN compass (USE_COMPASS 0, USE_COMPASS2 0, USE_COMPASS3 1, COMPASS_PRIMARY 3), and the compass is not detected, Mag Calibration does not start, but there is no indication anything failed.
Version ROVER 4.0.0 release
Platform Not sure if this is only on Rover, might be on other platforms too. [ ] All [ ] AntennaTracker [ ? ] Copter [ ? ] Plane [ X ] Rover [ ? ] Submarine
Hardware type Tested using Here2 on UAVCAN with CubeBlack and CubeOrange