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
2096d5e3
Commit
2096d5e3
authored
Jun 13, 2016
by
Matthias Krebs
Browse files
Save vehicle type for APM mock link
parent
815b465d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/preferences/MockLinkSettings.qml
View file @
2096d5e3
...
...
@@ -24,9 +24,14 @@ Item {
function
saveSettings
()
{
if
(
px4Firmware
.
checked
)
subEditConfig
.
firmware
=
12
else
if
(
apmFirmware
.
checked
)
subEditConfig
.
firmware
=
12
// Hardcoded MAV_AUTOPILOT_PX4
else
if
(
apmFirmware
.
checked
)
{
subEditConfig
.
firmware
=
3
if
(
planeVehicle
.
checked
)
subEditConfig
.
vehicle
=
1
// Hardcoded MAV_TYPE_FIXED_WING
else
subEditConfig
.
vehicle
=
2
// Hardcoded MAV_TYPE_QUADROTOR
}
else
subEditConfig
.
firmware
=
0
subEditConfig
.
sendStatus
=
sendStatus
.
checked
...
...
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