Commit 3d67039b authored by Don Gagne's avatar Don Gagne

Disarm while in air will pop Emergency Stop

parent 8ef001af
......@@ -273,7 +273,13 @@ Item {
onShowFlyView: mainWindow.showFlyView()
onShowAnalyzeView: mainWindow.showAnalyzeView()
onArmVehicle: flightView.guidedController.confirmAction(flightView.guidedController.actionArm)
onDisarmVehicle: flightView.guidedController.confirmAction(flightView.guidedController.actionDisarm)
onDisarmVehicle: {
if (flightView.guidedController.showEmergenyStop) {
flightView.guidedController.confirmAction(flightView.guidedController.actionEmergencyStop)
} else {
flightView.guidedController.confirmAction(flightView.guidedController.actionDisarm)
}
}
//-- Entire tool bar area disable on cammand
MouseArea {
......
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