Commit 7cfba12a authored by Gus Grubba's avatar Gus Grubba

Narrow the flight mode options

parent 424dbd37
...@@ -19,6 +19,14 @@ ...@@ -19,6 +19,14 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
CustomFirmwarePlugin::CustomFirmwarePlugin() CustomFirmwarePlugin::CustomFirmwarePlugin()
{ {
for (int i = 0; i < _flightModeInfoList.count(); i++) {
FlightModeInfo_t& info = _flightModeInfoList[i];
//-- Narrow the options to only these two
if (info.name != _altCtlFlightMode &&
info.name != _posCtlFlightMode) {
info.canBeSet = false;
}
}
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
......
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