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
b019458b
Commit
b019458b
authored
Jan 22, 2016
by
dogmaphobic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-adding changes from Don that got lost in the merge hell.
parent
17641797
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
FlightDisplayView.qml
src/FlightDisplay/FlightDisplayView.qml
+28
-0
No files found.
src/FlightDisplay/FlightDisplayView.qml
View file @
b019458b
...
...
@@ -74,6 +74,8 @@ Item {
property
real
_airSpeed
:
_activeVehicle
?
_activeVehicle
.
airSpeed
:
_defaultAirSpeed
property
real
_climbRate
:
_activeVehicle
?
_activeVehicle
.
climbRate
:
_defaultClimbRate
property
bool
activeVehicleJoystickEnabled
:
_activeVehicle
?
_activeVehicle
.
joystickEnabled
:
false
property
var
_savedZoomLevel
:
0
property
real
pipSize
:
mainWindow
.
width
*
0.2
...
...
@@ -105,9 +107,35 @@ Item {
QGroundControl
.
saveBoolGlobalSetting
(
_PIPVisibleKey
,
state
)
}
function
px4JoystickCheck
()
{
if
(
_activeVehicle
&&
!
_activeVehicle
.
px4Firmware
&&
(
QGroundControl
.
virtualTabletJoystick
||
_activeVehicle
.
joystickEnabled
))
{
px4JoystickSupport
.
open
()
}
}
MessageDialog
{
id
:
px4JoystickSupport
text
:
"
Joystick support requires MAVLink MANUAL_CONTROL support.
"
+
"
The firmware you are running does not normally support this.
"
+
"
It will only work if you have modified the firmware to add MANUAL_CONTROL support.
"
}
Connections
{
target
:
multiVehicleManager
onActiveVehicleChanged
:
px4JoystickCheck
()
}
Connections
{
target
:
QGroundControl
onVirtualTabletJoystickChanged
:
px4JoystickCheck
()
}
onActiveVehicleJoystickEnabledChanged
:
px4JoystickCheck
()
Component.onCompleted
:
{
widgetsLoader
.
source
=
"
FlightDisplayViewWidgets.qml
"
setStates
()
px4JoystickCheck
()
}
//-- Map View
...
...
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