Commit 278d9814 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #3555 from makrebs/mocklink

Save vehicle type for APM mock link
parents 815b465d 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
......
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