Commit 5d47074b authored by lm's avatar lm

Update UI control elements from vehicle, allows multi-operator mode

parent fb05e125
...@@ -161,6 +161,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) ...@@ -161,6 +161,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
this->status = (int)state.status; this->status = (int)state.status;
getStatusForCode((int)state.status, uasState, stateDescription); getStatusForCode((int)state.status, uasState, stateDescription);
emit statusChanged(this, uasState, stateDescription); emit statusChanged(this, uasState, stateDescription);
emit statusChanged(this->status);
stateAudio = " changed status to " + uasState; stateAudio = " changed status to " + uasState;
} }
......
...@@ -181,7 +181,7 @@ void UASControlWidget::cycleContextButton() ...@@ -181,7 +181,7 @@ void UASControlWidget::cycleContextButton()
if (mav) if (mav)
{ {
if (engineOn) if (!engineOn)
{ {
ui.controlButton->setText(tr("Stop Engine")); ui.controlButton->setText(tr("Stop Engine"));
mav->setMode(MAV_MODE_MANUAL); mav->setMode(MAV_MODE_MANUAL);
......
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