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