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
49c018cb
Commit
49c018cb
authored
Jul 16, 2017
by
Don Gagne
Committed by
GitHub
Jul 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5449 from DonLakeFlyer/StableMerge
Stable merge
parents
541129fd
a92067e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
GuidedActionsController.qml
src/FlightDisplay/GuidedActionsController.qml
+12
-2
No files found.
src/FlightDisplay/GuidedActionsController.qml
View file @
49c018cb
...
...
@@ -90,7 +90,7 @@ Item {
property
bool
showLand
:
_activeVehicle
&&
_activeVehicle
.
guidedModeSupported
&&
_vehicleArmed
&&
!
_activeVehicle
.
fixedWing
&&
!
_vehicleInLandMode
property
bool
showStartMission
:
_activeVehicle
&&
_missionAvailable
&&
!
_missionActive
&&
!
_vehicleFlying
property
bool
showContinueMission
:
_activeVehicle
&&
_missionAvailable
&&
!
_missionActive
&&
_vehicleFlying
&&
(
_currentMissionIndex
<
missionController
.
visualItems
.
count
-
1
)
property
bool
showResumeMission
:
_activeVehicle
&&
!
_vehicleFlying
&&
_missionAvailable
&&
_resumeMissionIndex
>
0
&&
(
_resumeMissionIndex
<
missionController
.
visualItems
.
count
-
2
)
property
bool
showResumeMission
:
_activeVehicle
&&
!
_vehicle
Armed
&&
_vehicleWas
Flying
&&
_missionAvailable
&&
_resumeMissionIndex
>
0
&&
(
_resumeMissionIndex
<
missionController
.
visualItems
.
count
-
2
)
property
bool
showPause
:
_activeVehicle
&&
_vehicleArmed
&&
_activeVehicle
.
pauseVehicleSupported
&&
_vehicleFlying
&&
!
_vehiclePaused
property
bool
showChangeAlt
:
(
_activeVehicle
&&
_vehicleFlying
)
&&
_activeVehicle
.
guidedModeSupported
&&
_vehicleArmed
&&
!
_missionActive
property
bool
showOrbit
:
!
_hideOrbit
&&
_activeVehicle
&&
_vehicleFlying
&&
_activeVehicle
.
orbitModeSupported
&&
_vehicleArmed
&&
!
_missionActive
...
...
@@ -114,6 +114,7 @@ Item {
property
int
_resumeMissionIndex
:
missionController
.
resumeMissionIndex
property
bool
_hideEmergenyStop
:
!
QGroundControl
.
corePlugin
.
options
.
guidedBarShowEmergencyStop
property
bool
_hideOrbit
:
!
QGroundControl
.
corePlugin
.
options
.
guidedBarShowOrbit
property
bool
_vehicleWasFlying
:
false
// This is a temporary hack to debug a problem with RTL and Pause being disabled at the wrong time
...
...
@@ -128,7 +129,6 @@ Item {
Component.onCompleted
:
_outputState
()
on_ActiveVehicleChanged
:
_outputState
()
on_VehicleArmedChanged
:
_outputState
()
on_VehicleFlyingChanged
:
_outputState
()
on_VehicleInRTLModeChanged
:
_outputState
()
on_VehiclePausedChanged
:
_outputState
()
on__FlightModeChanged
:
_outputState
()
...
...
@@ -137,6 +137,15 @@ Item {
// End of hack
on_VehicleFlyingChanged
:
{
_outputState
()
if
(
!
_vehicleFlying
)
{
// We use _vehicleWasFLying to help trigger Resume Mission only if the vehicle actually flew and came back down.
// Otherwise it may trigger during the Start Mission sequence due to signal ordering or armed and resume mission index.
_vehicleWasFlying
=
true
}
}
property
var
_actionData
on_CurrentMissionIndexChanged
:
console
.
log
(
"
_currentMissionIndex
"
,
_currentMissionIndex
)
...
...
@@ -265,6 +274,7 @@ Item {
missionController
.
resumeMission
(
missionController
.
resumeMissionIndex
)
break
case
actionResumeMissionReady
:
_vehicleWasFlying
=
false
_activeVehicle
.
startMission
()
break
case
actionStartMission
:
...
...
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