AP_Compass: make is_calibrating const

This commit is contained in:
Peter Barker 2021-07-30 14:41:20 +10:00 committed by Andrew Tridgell
parent d131cf01d3
commit 944b82a7be
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ public:
void cancel_calibration_all();
bool compass_cal_requires_reboot() const { return _cal_requires_reboot; }
bool is_calibrating();
bool is_calibrating() const;
// indicate which bit in LOG_BITMASK indicates we should log compass readings
void set_log_bit(uint32_t log_bit) { _log_bit = log_bit; }

View File

@ -315,7 +315,7 @@ bool Compass::send_mag_cal_report(const GCS_MAVLINK& link)
return true;
}
bool Compass::is_calibrating()
bool Compass::is_calibrating() const
{
for (Priority i(0); i<COMPASS_MAX_INSTANCES; i++) {
if (_calibrator[i] == nullptr) {