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
efc19ab4
Commit
efc19ab4
authored
Jul 23, 2016
by
Rustom Jehangir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable radio setup page for ArduSub vehicle
parent
8ba8c2c1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
APMAutoPilotPlugin.cc
src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc
+5
-3
Vehicle.cc
src/Vehicle/Vehicle.cc
+5
-0
Vehicle.h
src/Vehicle/Vehicle.h
+2
-0
No files found.
src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc
View file @
efc19ab4
...
@@ -63,9 +63,11 @@ const QVariantList& APMAutoPilotPlugin::vehicleComponents(void)
...
@@ -63,9 +63,11 @@ const QVariantList& APMAutoPilotPlugin::vehicleComponents(void)
_airframeComponent
->
setupTriggerSignals
();
_airframeComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_airframeComponent
));
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_airframeComponent
));
_radioComponent
=
new
APMRadioComponent
(
_vehicle
,
this
);
if
(
!
_vehicle
->
sub
()
)
{
_radioComponent
->
setupTriggerSignals
();
_radioComponent
=
new
APMRadioComponent
(
_vehicle
,
this
);
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_radioComponent
));
_radioComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_radioComponent
));
}
_flightModesComponent
=
new
APMFlightModesComponent
(
_vehicle
,
this
);
_flightModesComponent
=
new
APMFlightModesComponent
(
_vehicle
,
this
);
_flightModesComponent
->
setupTriggerSignals
();
_flightModesComponent
->
setupTriggerSignals
();
...
...
src/Vehicle/Vehicle.cc
View file @
efc19ab4
...
@@ -1474,6 +1474,11 @@ bool Vehicle::rover(void) const
...
@@ -1474,6 +1474,11 @@ bool Vehicle::rover(void) const
return
vehicleType
()
==
MAV_TYPE_GROUND_ROVER
;
return
vehicleType
()
==
MAV_TYPE_GROUND_ROVER
;
}
}
bool
Vehicle
::
sub
(
void
)
const
{
return
vehicleType
()
==
MAV_TYPE_SUBMARINE
;
}
bool
Vehicle
::
multiRotor
(
void
)
const
bool
Vehicle
::
multiRotor
(
void
)
const
{
{
switch
(
vehicleType
())
{
switch
(
vehicleType
())
{
...
...
src/Vehicle/Vehicle.h
View file @
efc19ab4
...
@@ -276,6 +276,7 @@ public:
...
@@ -276,6 +276,7 @@ public:
Q_PROPERTY
(
bool
vtol
READ
vtol
CONSTANT
)
Q_PROPERTY
(
bool
vtol
READ
vtol
CONSTANT
)
Q_PROPERTY
(
bool
rover
READ
rover
CONSTANT
)
Q_PROPERTY
(
bool
rover
READ
rover
CONSTANT
)
Q_PROPERTY
(
bool
supportsManualControl
READ
supportsManualControl
CONSTANT
)
Q_PROPERTY
(
bool
supportsManualControl
READ
supportsManualControl
CONSTANT
)
Q_PROPERTY
(
bool
sub
READ
sub
CONSTANT
)
Q_PROPERTY
(
bool
autoDisconnect
MEMBER
_autoDisconnect
NOTIFY
autoDisconnectChanged
)
Q_PROPERTY
(
bool
autoDisconnect
MEMBER
_autoDisconnect
NOTIFY
autoDisconnectChanged
)
Q_PROPERTY
(
QString
prearmError
READ
prearmError
WRITE
setPrearmError
NOTIFY
prearmErrorChanged
)
Q_PROPERTY
(
QString
prearmError
READ
prearmError
WRITE
setPrearmError
NOTIFY
prearmErrorChanged
)
Q_PROPERTY
(
int
motorCount
READ
motorCount
CONSTANT
)
Q_PROPERTY
(
int
motorCount
READ
motorCount
CONSTANT
)
...
@@ -466,6 +467,7 @@ public:
...
@@ -466,6 +467,7 @@ public:
bool
multiRotor
(
void
)
const
;
bool
multiRotor
(
void
)
const
;
bool
vtol
(
void
)
const
;
bool
vtol
(
void
)
const
;
bool
rover
(
void
)
const
;
bool
rover
(
void
)
const
;
bool
sub
(
void
)
const
;
bool
supportsManualControl
(
void
)
const
;
bool
supportsManualControl
(
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