Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
e6648c06
Commit
e6648c06
authored
Apr 03, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3135 from DonLakeFlyer/NullActive
Fix null _activeVehicle references
parents
e68c93dc
2d49ef53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
FlightDisplayViewWidgets.qml
src/FlightDisplay/FlightDisplayViewWidgets.qml
+7
-6
No files found.
src/FlightDisplay/FlightDisplayViewWidgets.qml
View file @
e6648c06
...
...
@@ -445,25 +445,25 @@ Item {
spacing
:
_margins
QGCButton
{
text
:
_activeVehicle
.
armed
?
(
_activeVehicle
.
flying
?
"
Emergency Stop
"
:
"
Disarm
"
)
:
"
Arm
"
text
:
(
_activeVehicle
&&
_activeVehicle
.
armed
)
?
(
_activeVehicle
.
flying
?
"
Emergency Stop
"
:
"
Disarm
"
)
:
"
Arm
"
onClicked
:
_guidedModeBar
.
confirmAction
(
_activeVehicle
.
armed
?
(
_activeVehicle
.
flying
?
_guidedModeBar
.
confirmEmergencyStop
:
_guidedModeBar
.
confirmDisarm
)
:
_guidedModeBar
.
confirmArm
)
}
QGCButton
{
text
:
"
RTL
"
visible
:
_activeVehicle
.
guidedModeSupported
&&
_activeVehicle
.
flying
visible
:
_activeVehicle
&&
_activeVehicle
.
guidedModeSupported
&&
_activeVehicle
.
flying
onClicked
:
_guidedModeBar
.
confirmAction
(
_guidedModeBar
.
confirmHome
)
}
QGCButton
{
text
:
_activeVehicle
.
flying
?
"
Land
"
:
"
Takeoff
"
visible
:
_activeVehicle
.
guidedModeSupported
&&
_activeVehicle
.
armed
text
:
(
_activeVehicle
&&
_activeVehicle
.
flying
)
?
"
Land
"
:
"
Takeoff
"
visible
:
_activeVehicle
&&
_activeVehicle
.
guidedModeSupported
&&
_activeVehicle
.
armed
onClicked
:
_guidedModeBar
.
confirmAction
(
_activeVehicle
.
flying
?
_guidedModeBar
.
confirmLand
:
_guidedModeBar
.
confirmTakeoff
)
}
QGCButton
{
text
:
"
Pause
"
visible
:
_activeVehicle
.
pauseVehicleSupported
&&
_activeVehicle
.
flying
visible
:
_activeVehicle
&&
_activeVehicle
.
pauseVehicleSupported
&&
_activeVehicle
.
flying
onClicked
:
{
guidedModeHideTimer
.
restart
()
_activeVehicle
.
pauseVehicle
()
...
...
@@ -472,13 +472,14 @@ Item {
QGCButton
{
text
:
"
Change Altitude
"
visible
:
_activeVehicle
.
guidedModeSupported
&&
_activeVehicle
.
armed
visible
:
_activeVehicle
&&
_activeVehicle
.
guidedModeSupported
&&
_activeVehicle
.
armed
onClicked
:
_guidedModeBar
.
confirmAction
(
_guidedModeBar
.
confirmChangeAlt
)
}
}
// Row
QGCLabel
{
anchors.horizontalCenter
:
parent
.
horizontalCenter
color
:
qgcPal
.
button
text
:
"
Click in map to move vehicle
"
visible
:
_activeVehicle
&&
_activeVehicle
.
guidedMode
&&
_activeVehicle
.
flying
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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