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
40185131
Commit
40185131
authored
8 years ago
by
Andrew Tridgell
Committed by
Lorenz Meier
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added QRTL flight mode for APM:Plane (#3347)
parent
d5cf0a73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
ArduPlaneFirmwarePlugin.cc
src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc
+2
-0
ArduPlaneFirmwarePlugin.h
src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.h
+1
-0
No files found.
src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc
View file @
40185131
...
@@ -48,6 +48,7 @@ APMPlaneMode::APMPlaneMode(uint32_t mode, bool settable)
...
@@ -48,6 +48,7 @@ APMPlaneMode::APMPlaneMode(uint32_t mode, bool settable)
enumToString
.
insert
(
QHOVER
,
"QuadPlane Hover"
);
enumToString
.
insert
(
QHOVER
,
"QuadPlane Hover"
);
enumToString
.
insert
(
QLOITER
,
"QuadPlane Loiter"
);
enumToString
.
insert
(
QLOITER
,
"QuadPlane Loiter"
);
enumToString
.
insert
(
QLAND
,
"QuadPlane Land"
);
enumToString
.
insert
(
QLAND
,
"QuadPlane Land"
);
enumToString
.
insert
(
QRTL
,
"QuadPlane RTL"
);
setEnumToStringMapping
(
enumToString
);
setEnumToStringMapping
(
enumToString
);
}
}
...
@@ -73,5 +74,6 @@ ArduPlaneFirmwarePlugin::ArduPlaneFirmwarePlugin(void)
...
@@ -73,5 +74,6 @@ ArduPlaneFirmwarePlugin::ArduPlaneFirmwarePlugin(void)
supportedFlightModes
<<
APMPlaneMode
(
APMPlaneMode
::
QHOVER
,
true
);
supportedFlightModes
<<
APMPlaneMode
(
APMPlaneMode
::
QHOVER
,
true
);
supportedFlightModes
<<
APMPlaneMode
(
APMPlaneMode
::
QLOITER
,
true
);
supportedFlightModes
<<
APMPlaneMode
(
APMPlaneMode
::
QLOITER
,
true
);
supportedFlightModes
<<
APMPlaneMode
(
APMPlaneMode
::
QLAND
,
true
);
supportedFlightModes
<<
APMPlaneMode
(
APMPlaneMode
::
QLAND
,
true
);
supportedFlightModes
<<
APMPlaneMode
(
APMPlaneMode
::
QRTL
,
true
);
setSupportedModes
(
supportedFlightModes
);
setSupportedModes
(
supportedFlightModes
);
}
}
This diff is collapsed.
Click to expand it.
src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.h
View file @
40185131
...
@@ -54,6 +54,7 @@ public:
...
@@ -54,6 +54,7 @@ public:
QHOVER
=
18
,
QHOVER
=
18
,
QLOITER
=
19
,
QLOITER
=
19
,
QLAND
=
20
,
QLAND
=
20
,
QRTL
=
21
,
modeCount
modeCount
};
};
...
...
This diff is collapsed.
Click to expand it.
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