Commit 2096d5e3 authored by Matthias Krebs's avatar Matthias Krebs

Save vehicle type for APM mock link

parent 815b465d
......@@ -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