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
ab0e284f
Commit
ab0e284f
authored
Aug 08, 2017
by
Don Gagne
Committed by
GitHub
Aug 08, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5526 from bluerobotics/pr-add-sub-modes
Add missing sub modes
parents
8d403ddf
cecfad72
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
ArduSubFirmwarePlugin.cc
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.cc
+12
-0
ArduSubFirmwarePlugin.h
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.h
+6
-6
No files found.
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.cc
View file @
ab0e284f
...
...
@@ -35,7 +35,13 @@ APMSubMode::APMSubMode(uint32_t mode, bool settable) :
QMap
<
uint32_t
,
QString
>
enumToString
;
enumToString
.
insert
(
MANUAL
,
"Manual"
);
enumToString
.
insert
(
STABILIZE
,
"Stabilize"
);
enumToString
.
insert
(
ACRO
,
"Acro"
);
enumToString
.
insert
(
ALT_HOLD
,
"Depth Hold"
);
enumToString
.
insert
(
AUTO
,
"Auto"
);
enumToString
.
insert
(
GUIDED
,
"Guided"
);
enumToString
.
insert
(
CIRCLE
,
"Circle"
);
enumToString
.
insert
(
SURFACE
,
"Surface"
);
enumToString
.
insert
(
POSHOLD
,
"Position Hold"
);
setEnumToStringMapping
(
enumToString
);
}
...
...
@@ -46,7 +52,13 @@ ArduSubFirmwarePlugin::ArduSubFirmwarePlugin(void):
QList
<
APMCustomMode
>
supportedFlightModes
;
supportedFlightModes
<<
APMSubMode
(
APMSubMode
::
MANUAL
,
true
);
supportedFlightModes
<<
APMSubMode
(
APMSubMode
::
STABILIZE
,
true
);
supportedFlightModes
<<
APMSubMode
(
APMSubMode
::
ACRO
,
true
);
supportedFlightModes
<<
APMSubMode
(
APMSubMode
::
ALT_HOLD
,
true
);
supportedFlightModes
<<
APMSubMode
(
APMSubMode
::
AUTO
,
true
);
supportedFlightModes
<<
APMSubMode
(
APMSubMode
::
GUIDED
,
true
);
supportedFlightModes
<<
APMSubMode
(
APMSubMode
::
CIRCLE
,
true
);
supportedFlightModes
<<
APMSubMode
(
APMSubMode
::
SURFACE
,
false
);
supportedFlightModes
<<
APMSubMode
(
APMSubMode
::
POSHOLD
,
true
);
setSupportedModes
(
supportedFlightModes
);
if
(
!
_remapParamNameIntialized
)
{
...
...
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.h
View file @
ab0e284f
...
...
@@ -68,22 +68,22 @@ class APMSubMode : public APMCustomMode
public:
enum
Mode
{
STABILIZE
=
0
,
// Hold level position
RESERVED_1
=
1
,
ACRO
=
1
,
// Manual angular rate, throttle
ALT_HOLD
=
2
,
// Depth hold
RESERVED_3
=
3
,
RESERVED_4
=
4
,
AUTO
=
3
,
// Full auto to waypoint
GUIDED
=
4
,
// Full auto to coordinate/direction
RESERVED_5
=
5
,
RESERVED_6
=
6
,
RESERVED_7
=
7
,
CIRCLE
=
7
,
// Auto circling
RESERVED_8
=
8
,
RESERVED_9
=
9
,
SURFACE
=
9
,
// Auto return to surface
RESERVED_10
=
10
,
RESERVED_11
=
11
,
RESERVED_12
=
12
,
RESERVED_13
=
13
,
RESERVED_14
=
14
,
RESERVED_15
=
15
,
RESERVED_16
=
16
,
POSHOLD
=
16
,
// Hold position
RESERVED_17
=
17
,
RESERVED_18
=
18
,
MANUAL
=
19
...
...
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