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)
this->status = (int)state.status;
getStatusForCode((int)state.status, uasState, stateDescription);
emit statusChanged(this, uasState, stateDescription);
emit statusChanged(this->status);
stateAudio = " changed status to " + uasState;
}
......
......@@ -181,7 +181,7 @@ void UASControlWidget::cycleContextButton()
if (mav)
{
if (engineOn)
if (!engineOn)
{
ui.controlButton->setText(tr("Stop Engine"));
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