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
8ba8c2c1
Commit
8ba8c2c1
authored
Jul 23, 2016
by
Don Gagne
Committed by
GitHub
Jul 23, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3842 from bluerobotics/stopJoystickWarning
ArduSub: Disable joystick warning message
parents
838eff4c
67c9d52f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
FlightDisplayView.qml
src/FlightDisplay/FlightDisplayView.qml
+1
-1
Vehicle.cc
src/Vehicle/Vehicle.cc
+13
-0
Vehicle.h
src/Vehicle/Vehicle.h
+3
-0
No files found.
src/FlightDisplay/FlightDisplayView.qml
View file @
8ba8c2c1
...
...
@@ -91,7 +91,7 @@ QGCView {
}
function
px4JoystickCheck
()
{
if
(
_activeVehicle
&&
!
_activeVehicle
.
px4Firmware
&&
(
QGroundControl
.
virtualTabletJoystick
||
_activeVehicle
.
joystickEnabled
))
{
if
(
_activeVehicle
&&
!
_activeVehicle
.
supportsManualControl
&&
(
QGroundControl
.
virtualTabletJoystick
||
_activeVehicle
.
joystickEnabled
))
{
px4JoystickSupport
.
open
()
}
}
...
...
src/Vehicle/Vehicle.cc
View file @
8ba8c2c1
...
...
@@ -1505,6 +1505,19 @@ bool Vehicle::vtol(void) const
}
}
bool
Vehicle
::
supportsManualControl
(
void
)
const
{
// PX4 Firmware supports manual control message
if
(
px4Firmware
()
)
{
return
true
;
}
// ArduSub supports manual control message (identified by APM + Submarine type)
if
(
apmFirmware
()
&&
vehicleType
()
==
MAV_TYPE_SUBMARINE
)
{
return
true
;
}
return
false
;
}
void
Vehicle
::
_setCoordinateValid
(
bool
coordinateValid
)
{
if
(
coordinateValid
!=
_coordinateValid
)
{
...
...
src/Vehicle/Vehicle.h
View file @
8ba8c2c1
...
...
@@ -275,6 +275,7 @@ public:
Q_PROPERTY
(
bool
multiRotor
READ
multiRotor
CONSTANT
)
Q_PROPERTY
(
bool
vtol
READ
vtol
CONSTANT
)
Q_PROPERTY
(
bool
rover
READ
rover
CONSTANT
)
Q_PROPERTY
(
bool
supportsManualControl
READ
supportsManualControl
CONSTANT
)
Q_PROPERTY
(
bool
autoDisconnect
MEMBER
_autoDisconnect
NOTIFY
autoDisconnectChanged
)
Q_PROPERTY
(
QString
prearmError
READ
prearmError
WRITE
setPrearmError
NOTIFY
prearmErrorChanged
)
Q_PROPERTY
(
int
motorCount
READ
motorCount
CONSTANT
)
...
...
@@ -466,6 +467,8 @@ public:
bool
vtol
(
void
)
const
;
bool
rover
(
void
)
const
;
bool
supportsManualControl
(
void
)
const
;
void
setFlying
(
bool
flying
);
void
setGuidedMode
(
bool
guidedMode
);
...
...
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