Commit 8ad79198 authored by Don Gagne's avatar Don Gagne

Turn off COMPASS_LEARN after cal

parent 1c7174f2
......@@ -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