Commit bb240c26 authored by Don Gagne's avatar Don Gagne

APM stack does not support RC cal start/stop

parent 7f58b6ef
...@@ -870,7 +870,9 @@ void RadioComponentController::_writeCalibration(void) ...@@ -870,7 +870,9 @@ void RadioComponentController::_writeCalibration(void)
{ {
if (!_uas) return; if (!_uas) return;
if (_px4Vehicle()) {
_uas->stopCalibration(); _uas->stopCalibration();
}
_validateCalibration(); _validateCalibration();
...@@ -964,7 +966,9 @@ void RadioComponentController::_startCalibration(void) ...@@ -964,7 +966,9 @@ void RadioComponentController::_startCalibration(void)
_resetInternalCalibrationValues(); _resetInternalCalibrationValues();
// Let the mav known we are starting calibration. This should turn off motors and so forth. // Let the mav known we are starting calibration. This should turn off motors and so forth.
if (_px4Vehicle()) {
_uas->startCalibration(UASInterface::StartCalibrationRadio); _uas->startCalibration(UASInterface::StartCalibrationRadio);
}
_nextButton->setProperty("text", "Next"); _nextButton->setProperty("text", "Next");
_cancelButton->setEnabled(true); _cancelButton->setEnabled(true);
...@@ -979,7 +983,9 @@ void RadioComponentController::_stopCalibration(void) ...@@ -979,7 +983,9 @@ void RadioComponentController::_stopCalibration(void)
_currentStep = -1; _currentStep = -1;
if (_uas) { if (_uas) {
if (_px4Vehicle()) {
_uas->stopCalibration(); _uas->stopCalibration();
}
_setInternalCalibrationValuesFromParameters(); _setInternalCalibrationValuesFromParameters();
} else { } else {
_resetInternalCalibrationValues(); _resetInternalCalibrationValues();
......
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