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
bfd05e56
Commit
bfd05e56
authored
Sep 20, 2017
by
Don Gagne
Committed by
GitHub
Sep 20, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5673 from DonLakeFlyer/ManualControlWork
Assume all vehicles support MANUAL_CONTROL
parents
add505fa
c5a4ee62
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
0 additions
and
61 deletions
+0
-61
ArduRoverFirmwarePlugin.cc
src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.cc
+0
-5
ArduRoverFirmwarePlugin.h
src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.h
+0
-1
ArduSubFirmwarePlugin.cc
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.cc
+0
-5
ArduSubFirmwarePlugin.h
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.h
+0
-2
FirmwarePlugin.cc
src/FirmwarePlugin/FirmwarePlugin.cc
+0
-5
FirmwarePlugin.h
src/FirmwarePlugin/FirmwarePlugin.h
+0
-4
PX4FirmwarePlugin.cc
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc
+0
-5
PX4FirmwarePlugin.h
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.h
+0
-1
FlightDisplayView.qml
src/FlightDisplay/FlightDisplayView.qml
+0
-26
Vehicle.cc
src/Vehicle/Vehicle.cc
+0
-5
Vehicle.h
src/Vehicle/Vehicle.h
+0
-2
No files found.
src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.cc
View file @
bfd05e56
...
...
@@ -111,8 +111,3 @@ bool ArduRoverFirmwarePlugin::supportsNegativeThrust(void)
{
return
true
;
}
bool
ArduRoverFirmwarePlugin
::
supportsManualControl
(
void
)
{
return
true
;
}
src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.h
View file @
bfd05e56
...
...
@@ -56,7 +56,6 @@ public:
int
remapParamNameHigestMinorVersionNumber
(
int
majorVersionNumber
)
const
final
;
const
FirmwarePlugin
::
remapParamNameMajorVersionMap_t
&
paramNameRemapMajorVersionMap
(
void
)
const
final
{
return
_remapParamName
;
}
bool
supportsNegativeThrust
(
void
)
final
;
bool
supportsManualControl
(
void
)
final
;
private:
static
bool
_remapParamNameIntialized
;
...
...
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.cc
View file @
bfd05e56
...
...
@@ -132,11 +132,6 @@ bool ArduSubFirmwarePlugin::supportsThrottleModeCenterZero(void)
return
false
;
}
bool
ArduSubFirmwarePlugin
::
supportsManualControl
(
void
)
{
return
true
;
}
bool
ArduSubFirmwarePlugin
::
supportsRadio
(
void
)
{
return
false
;
...
...
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.h
View file @
bfd05e56
...
...
@@ -107,8 +107,6 @@ public:
bool
supportsThrottleModeCenterZero
(
void
)
final
;
bool
supportsManualControl
(
void
)
final
;
bool
supportsRadio
(
void
)
final
;
bool
supportsJSButton
(
void
)
final
;
...
...
src/FirmwarePlugin/FirmwarePlugin.cc
View file @
bfd05e56
...
...
@@ -135,11 +135,6 @@ bool FirmwarePlugin::supportsNegativeThrust(void)
return
false
;
}
bool
FirmwarePlugin
::
supportsManualControl
(
void
)
{
return
false
;
}
bool
FirmwarePlugin
::
supportsRadio
(
void
)
{
return
true
;
...
...
src/FirmwarePlugin/FirmwarePlugin.h
View file @
bfd05e56
...
...
@@ -163,10 +163,6 @@ public:
/// Typically supported rover.
virtual
bool
supportsNegativeThrust
(
void
);
/// Returns true if the firmware supports the use of the MAVlink "MANUAL_CONTROL" message.
/// By default, this returns false unless overridden in the firmware plugin.
virtual
bool
supportsManualControl
(
void
);
/// Returns true if the firmware supports the use of the RC radio and requires the RC radio
/// setup page. Returns true by default.
virtual
bool
supportsRadio
(
void
);
...
...
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc
View file @
bfd05e56
...
...
@@ -220,11 +220,6 @@ int PX4FirmwarePlugin::manualControlReservedButtonCount(void)
return
0
;
// 0 buttons reserved for rc switch simulation
}
bool
PX4FirmwarePlugin
::
supportsManualControl
(
void
)
{
return
true
;
}
bool
PX4FirmwarePlugin
::
isCapable
(
const
Vehicle
*
vehicle
,
FirmwareCapabilities
capabilities
)
{
int
available
=
MavCmdPreflightStorageCapability
|
SetFlightModeCapability
|
PauseVehicleCapability
|
GuidedModeCapability
;
...
...
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.h
View file @
bfd05e56
...
...
@@ -51,7 +51,6 @@ public:
void
startMission
(
Vehicle
*
vehicle
)
override
;
bool
isGuidedMode
(
const
Vehicle
*
vehicle
)
const
override
;
int
manualControlReservedButtonCount
(
void
)
override
;
bool
supportsManualControl
(
void
)
override
;
void
initializeVehicle
(
Vehicle
*
vehicle
)
override
;
bool
sendHomePositionToVehicle
(
void
)
override
;
void
addMetaDataToFact
(
QObject
*
parameterMetaData
,
Fact
*
fact
,
MAV_TYPE
vehicleType
)
override
;
...
...
src/FlightDisplay/FlightDisplayView.qml
View file @
bfd05e56
...
...
@@ -92,12 +92,6 @@ QGCView {
QGroundControl
.
saveBoolGlobalSetting
(
_PIPVisibleKey
,
state
)
}
function
px4JoystickCheck
()
{
if
(
_activeVehicle
&&
!
_activeVehicle
.
supportsManualControl
&&
(
QGroundControl
.
settingsManager
.
appSettings
.
virtualJoystick
.
value
||
_activeVehicle
.
joystickEnabled
))
{
px4JoystickSupport
.
open
()
}
}
PlanMasterController
{
id
:
masterController
Component.onCompleted
:
start
(
false
/* editMode */
)
...
...
@@ -109,28 +103,8 @@ QGCView {
onResumeMissionUploadFail
:
guidedActionsController
.
confirmAction
(
guidedActionsController
.
actionResumeMissionUploadFail
)
}
MessageDialog
{
id
:
px4JoystickSupport
text
:
qsTr
(
"
Joystick support requires MAVLink MANUAL_CONTROL support.
"
)
+
qsTr
(
"
The firmware you are running does not normally support this.
"
)
+
qsTr
(
"
It will only work if you have modified the firmware to add MANUAL_CONTROL support.
"
)
}
Connections
{
target
:
QGroundControl
.
multiVehicleManager
onActiveVehicleChanged
:
px4JoystickCheck
()
}
Connections
{
target
:
QGroundControl
.
settingsManager
.
appSettings
.
virtualJoystick
onValueChanged
:
px4JoystickCheck
()
}
onActiveVehicleJoystickEnabledChanged
:
px4JoystickCheck
()
Component.onCompleted
:
{
setStates
()
px4JoystickCheck
()
if
(
QGroundControl
.
corePlugin
.
options
.
flyViewOverlay
.
toString
().
length
)
{
flyViewOverlay
.
source
=
QGroundControl
.
corePlugin
.
options
.
flyViewOverlay
}
...
...
src/Vehicle/Vehicle.cc
View file @
bfd05e56
...
...
@@ -2097,11 +2097,6 @@ bool Vehicle::vtol(void) const
return
_firmwarePlugin
->
isVtol
(
this
);
}
bool
Vehicle
::
supportsManualControl
(
void
)
const
{
return
_firmwarePlugin
->
supportsManualControl
();
}
bool
Vehicle
::
supportsThrottleModeCenterZero
(
void
)
const
{
return
_firmwarePlugin
->
supportsThrottleModeCenterZero
();
...
...
src/Vehicle/Vehicle.h
View file @
bfd05e56
...
...
@@ -282,7 +282,6 @@ public:
Q_PROPERTY
(
bool
vtol
READ
vtol
NOTIFY
vehicleTypeChanged
)
Q_PROPERTY
(
bool
rover
READ
rover
NOTIFY
vehicleTypeChanged
)
Q_PROPERTY
(
bool
sub
READ
sub
NOTIFY
vehicleTypeChanged
)
Q_PROPERTY
(
bool
supportsManualControl
READ
supportsManualControl
CONSTANT
)
Q_PROPERTY
(
bool
supportsThrottleModeCenterZero
READ
supportsThrottleModeCenterZero
CONSTANT
)
Q_PROPERTY
(
bool
supportsNegativeThrust
READ
supportsNegativeThrust
CONSTANT
)
Q_PROPERTY
(
bool
supportsJSButton
READ
supportsJSButton
CONSTANT
)
...
...
@@ -515,7 +514,6 @@ public:
bool
rover
(
void
)
const
;
bool
sub
(
void
)
const
;
bool
supportsManualControl
(
void
)
const
;
bool
supportsThrottleModeCenterZero
(
void
)
const
;
bool
supportsNegativeThrust
(
void
)
const
;
bool
supportsRadio
(
void
)
const
;
...
...
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