mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
OP-1351 six point calibration would not clear instruction text when displaying home location not set error message
This commit is contained in:
parent
bd127320d7
commit
0f439baff2
@ -119,17 +119,20 @@ void SixPointCalibrationModel::start(bool calibrateAccel, bool calibrateMag)
|
||||
calibratingAccel = calibrateAccel;
|
||||
calibratingMag = calibrateMag;
|
||||
|
||||
// Store and reset board rotation before calibration starts
|
||||
storeAndClearBoardRotation();
|
||||
started();
|
||||
|
||||
// check if Homelocation is set
|
||||
HomeLocation::DataFields homeLocationData = homeLocation->getData();
|
||||
if (!homeLocationData.Set) {
|
||||
displayInstructions(tr("Home location not set, please set your home location and retry."), WizardModel::Warn);
|
||||
displayInstructions(tr("Aborting calibration!"), WizardModel::Failure);
|
||||
stopped();
|
||||
return;
|
||||
}
|
||||
|
||||
// Store and reset board rotation before calibration starts
|
||||
storeAndClearBoardRotation();
|
||||
|
||||
// Calibration accel
|
||||
AccelGyroSettings::DataFields accelGyroSettingsData = accelGyroSettings->getData();
|
||||
memento.accelGyroSettingsData = accelGyroSettingsData;
|
||||
@ -202,8 +205,6 @@ void SixPointCalibrationModel::start(bool calibrateAccel, bool calibrateMag)
|
||||
|
||||
position = 0;
|
||||
|
||||
started();
|
||||
|
||||
// Show instructions and enable controls
|
||||
progressChanged(0);
|
||||
displayInstructions((*currentSteps)[0].instructions, WizardModel::Prompt);
|
||||
|
Loading…
x
Reference in New Issue
Block a user