mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 00:04:02 -04:00
AP_Compass: rename CompassCalibrator::clear to stop
This commit is contained in:
parent
b862cc0333
commit
80b4eaa87a
@ -116,7 +116,7 @@ void Compass::_cancel_calibration(uint8_t i)
|
|||||||
AP_Notify::events.compass_cal_canceled = 1;
|
AP_Notify::events.compass_cal_canceled = 1;
|
||||||
}
|
}
|
||||||
_cal_saved[i] = false;
|
_cal_saved[i] = false;
|
||||||
_calibrator[i].clear();
|
_calibrator[i].stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Compass::_cancel_calibration_mask(uint8_t mask)
|
void Compass::_cancel_calibration_mask(uint8_t mask)
|
||||||
@ -172,7 +172,7 @@ bool Compass::_accept_calibration_mask(uint8_t mask)
|
|||||||
if (!_accept_calibration(i)) {
|
if (!_accept_calibration(i)) {
|
||||||
success = false;
|
success = false;
|
||||||
}
|
}
|
||||||
_calibrator[i].clear();
|
_calibrator[i].stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,10 +73,10 @@ CompassCalibrator::CompassCalibrator():
|
|||||||
_tolerance(COMPASS_CAL_DEFAULT_TOLERANCE),
|
_tolerance(COMPASS_CAL_DEFAULT_TOLERANCE),
|
||||||
_sample_buffer(nullptr)
|
_sample_buffer(nullptr)
|
||||||
{
|
{
|
||||||
clear();
|
stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CompassCalibrator::clear()
|
void CompassCalibrator::stop()
|
||||||
{
|
{
|
||||||
set_status(COMPASS_CAL_NOT_STARTED);
|
set_status(COMPASS_CAL_NOT_STARTED);
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ public:
|
|||||||
|
|
||||||
// start or stop the calibration
|
// start or stop the calibration
|
||||||
void start(bool retry, float delay, uint16_t offset_max, uint8_t compass_idx);
|
void start(bool retry, float delay, uint16_t offset_max, uint8_t compass_idx);
|
||||||
void clear();
|
void stop();
|
||||||
|
|
||||||
// update the state machine and calculate offsets, diagonals and offdiagonals
|
// update the state machine and calculate offsets, diagonals and offdiagonals
|
||||||
void update(bool &failure);
|
void update(bool &failure);
|
||||||
|
Loading…
Reference in New Issue
Block a user