Commit edd68abf authored by Lorenz Meier's avatar Lorenz Meier

Merge pull request #234 from julianoes/master

Small fix to ControlWidget
parents cf176d0c 38b96adf
......@@ -178,6 +178,12 @@ void UASControlWidget::transmitMode()
UASInterface* mav = UASManager::instance()->getUASForId(this->uas);
if (mav)
{
// include armed state
if (engineOn)
uasMode |= MAV_MODE_FLAG_SAFETY_ARMED;
else
uasMode &= ~MAV_MODE_FLAG_SAFETY_ARMED;
mav->setMode(uasMode);
QString mode = ui.modeComboBox->currentText();
......
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