Commit 79d98c7d authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #4273 from DonLakeFlyer/CompassLearnOff

Turn off COMPASS_LEARN after cal
parents 2b990cc4 8ad79198
......@@ -152,6 +152,9 @@ void APMSensorsComponentController::_stopCalibration(APMSensorsComponentControll
if (code == StopCalibrationSuccess) {
_resetInternalState();
_progressBar->setProperty("value", 1);
if (_vehicle->parameterManager()->parameterExists(FactSystem::defaultComponentId, QStringLiteral("COMPASS_LEARN"))) {
_vehicle->parameterManager()->getParameter(FactSystem::defaultComponentId, QStringLiteral("COMPASS_LEARN"))->setRawValue(0);
}
} else {
_progressBar->setProperty("value", 0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment