Commit 40d8fa8e authored by Lorenz Meier's avatar Lorenz Meier

PX4 Power component: Add UAVCAN end enum button

parent 705b7be2
......@@ -277,9 +277,14 @@ QGCView {
}
QGCButton {
text: "Configure"
text: "Start Configuration"
onClicked: controller.busConfigureActuators()
}
QGCButton {
text: "End Configuration"
onClicked: controller.StopBusConfigureActuators()
}
}
}
......
......@@ -55,6 +55,12 @@ void PowerComponentController::busConfigureActuators(void)
_uas->startBusConfig(UASInterface::StartBusConfigActuators);
}
void PowerComponentController::stopBusConfigureActuators(void)
{
disconnect(_uas, &UASInterface::textMessageReceived, this, &PowerComponentController::_handleUASTextMessage);
_uas->startBusConfig(UASInterface::EndBusConfigActuators);
}
void PowerComponentController::_stopCalibration(void)
{
disconnect(_uas, &UASInterface::textMessageReceived, this, &PowerComponentController::_handleUASTextMessage);
......
......@@ -44,6 +44,7 @@ public:
Q_INVOKABLE void calibrateEsc(void);
Q_INVOKABLE void busConfigureActuators(void);
Q_INVOKABLE void stopBusConfigureActuators(void);
signals:
void oldFirmware(void);
......
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