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
dd4f3e70
Commit
dd4f3e70
authored
May 25, 2017
by
Don Gagne
Committed by
GitHub
May 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5190 from DonLakeFlyer/GuidedDebug
Hack to debug guided enabled problem
parents
fdfb5a3e
af57278d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
GuidedActionsController.qml
src/FlightDisplay/GuidedActionsController.qml
+23
-0
No files found.
src/FlightDisplay/GuidedActionsController.qml
View file @
dd4f3e70
...
...
@@ -111,6 +111,29 @@ Item {
property
int
_resumeMissionIndex
:
missionController
.
resumeMissionIndex
property
bool
_hideEmergenyStop
:
!
QGroundControl
.
corePlugin
.
options
.
guidedBarShowEmergencyStop
property
bool
_hideOrbit
:
!
QGroundControl
.
corePlugin
.
options
.
guidedBarShowOrbit
// This is a temporary hack to debug a problem with RTL and Pause being disabled at the wrong time
property
bool
__guidedModeSupported
:
_activeVehicle
?
_activeVehicle
.
guidedModeSupported
:
false
property
bool
__pauseVehicleSupported
:
_activeVehicle
?
_activeVehicle
.
pauseVehicleSupported
:
false
property
bool
__flightMode
:
_flightMode
function
_outputState
()
{
console
.
log
(
qsTr
(
"
_activeVehicle(%1) _vehicleArmed(%2) guidedModeSupported(%3) _vehicleFlying(%4) _vehicleInRTLMode(%5) pauseVehicleSupported(%6) _vehiclePaused(%7) _flightMode(%8)
"
).
arg
(
_activeVehicle
?
1
:
0
).
arg
(
_vehicleArmed
?
1
:
0
).
arg
(
__guidedModeSupported
?
1
:
0
).
arg
(
_vehicleFlying
?
1
:
0
).
arg
(
_vehicleInRTLMode
?
1
:
0
).
arg
(
__pauseVehicleSupported
?
1
:
0
).
arg
(
_vehiclePaused
?
1
:
0
).
arg
(
_flightMode
))
}
Component.onCompleted
:
_outputState
()
on_ActiveVehicleChanged
:
_outputState
()
on_VehicleArmedChanged
:
_outputState
()
on_VehicleFlyingChanged
:
_outputState
()
on_VehicleInRTLModeChanged
:
_outputState
()
on_VehiclePausedChanged
:
_outputState
()
on__FlightModeChanged
:
_outputState
()
on__GuidedModeSupportedChanged
:
_outputState
()
on__PauseVehicleSupportedChanged
:
_outputState
()
// End of hack
property
var
_actionData
on_CurrentMissionIndexChanged
:
console
.
log
(
"
_currentMissionIndex
"
,
_currentMissionIndex
)
...
...
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