Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
7cfba12a
Commit
7cfba12a
authored
Jul 30, 2019
by
Gus Grubba
Browse files
Narrow the flight mode options
parent
424dbd37
Changes
1
Hide whitespace changes
Inline
Side-by-side
custom-example/src/FirmwarePlugin/CustomFirmwarePlugin.cc
View file @
7cfba12a
...
...
@@ -19,6 +19,14 @@
//-----------------------------------------------------------------------------
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
;
}
}
}
//-----------------------------------------------------------------------------
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment