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
52c47fde
Commit
52c47fde
authored
May 17, 2017
by
Don Gagne
Committed by
GitHub
May 17, 2017
Browse files
Merge pull request #5175 from DonLakeFlyer/EmergencyStop
Disarm while in air will pop Emergency Stop
parents
07777bbe
3d67039b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/MainWindowInner.qml
View file @
52c47fde
...
...
@@ -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
{
...
...
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