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
26a94703
Commit
26a94703
authored
Mar 24, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3065 from DonLakeFlyer/QuadPlaneModes
Add new QuadPlane flight modes
parents
1ba1841b
ab024a66
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
ArduPlaneFirmwarePlugin.cc
src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc
+8
-0
ArduPlaneFirmwarePlugin.h
src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.h
+6
-2
No files found.
src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc
View file @
26a94703
...
@@ -44,6 +44,10 @@ APMPlaneMode::APMPlaneMode(uint32_t mode, bool settable)
...
@@ -44,6 +44,10 @@ APMPlaneMode::APMPlaneMode(uint32_t mode, bool settable)
enumToString
.
insert
(
LOITER
,
"Loiter"
);
enumToString
.
insert
(
LOITER
,
"Loiter"
);
enumToString
.
insert
(
GUIDED
,
"Guided"
);
enumToString
.
insert
(
GUIDED
,
"Guided"
);
enumToString
.
insert
(
INITIALIZING
,
"Initializing"
);
enumToString
.
insert
(
INITIALIZING
,
"Initializing"
);
enumToString
.
insert
(
QSTABILIZE
,
"QuadPlane Stabilize"
);
enumToString
.
insert
(
QHOVER
,
"QuadPlane Hover"
);
enumToString
.
insert
(
QLOITER
,
"QuadPlane Loiter"
);
enumToString
.
insert
(
QLAND
,
"QuadPlane Land"
);
setEnumToStringMapping
(
enumToString
);
setEnumToStringMapping
(
enumToString
);
}
}
...
@@ -65,5 +69,9 @@ ArduPlaneFirmwarePlugin::ArduPlaneFirmwarePlugin(void)
...
@@ -65,5 +69,9 @@ ArduPlaneFirmwarePlugin::ArduPlaneFirmwarePlugin(void)
supportedFlightModes
<<
APMPlaneMode
(
APMPlaneMode
::
LOITER
,
true
);
supportedFlightModes
<<
APMPlaneMode
(
APMPlaneMode
::
LOITER
,
true
);
supportedFlightModes
<<
APMPlaneMode
(
APMPlaneMode
::
GUIDED
,
true
);
supportedFlightModes
<<
APMPlaneMode
(
APMPlaneMode
::
GUIDED
,
true
);
supportedFlightModes
<<
APMPlaneMode
(
APMPlaneMode
::
INITIALIZING
,
false
);
supportedFlightModes
<<
APMPlaneMode
(
APMPlaneMode
::
INITIALIZING
,
false
);
supportedFlightModes
<<
APMPlaneMode
(
APMPlaneMode
::
QSTABILIZE
,
true
);
supportedFlightModes
<<
APMPlaneMode
(
APMPlaneMode
::
QHOVER
,
true
);
supportedFlightModes
<<
APMPlaneMode
(
APMPlaneMode
::
QLOITER
,
true
);
supportedFlightModes
<<
APMPlaneMode
(
APMPlaneMode
::
QLAND
,
true
);
setSupportedModes
(
supportedFlightModes
);
setSupportedModes
(
supportedFlightModes
);
}
}
src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.h
View file @
26a94703
...
@@ -49,9 +49,13 @@ public:
...
@@ -49,9 +49,13 @@ public:
RESERVED_13
=
13
,
// RESERVED FOR FUTURE USE
RESERVED_13
=
13
,
// RESERVED FOR FUTURE USE
RESERVED_14
=
14
,
// RESERVED FOR FUTURE USE
RESERVED_14
=
14
,
// RESERVED FOR FUTURE USE
GUIDED
=
15
,
GUIDED
=
15
,
INITIALIZING
=
16
INITIALIZING
=
16
,
QSTABILIZE
=
17
,
QHOVER
=
18
,
QLOITER
=
19
,
QLAND
=
20
,
modeCount
};
};
static
const
int
modeCount
=
17
;
APMPlaneMode
(
uint32_t
mode
,
bool
settable
);
APMPlaneMode
(
uint32_t
mode
,
bool
settable
);
};
};
...
...
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