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
348949d3
Commit
348949d3
authored
Feb 25, 2017
by
Don Gagne
Committed by
GitHub
Feb 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4618 from DonLakeFlyer/SimpleFlightMode
Add Simple flight mode for multi-rotor
parents
f610602d
98fde8d0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
PX4FirmwarePlugin.cc
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc
+2
-0
PX4FirmwarePlugin.h
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.h
+1
-0
px4_custom_mode.h
src/FirmwarePlugin/PX4/px4_custom_mode.h
+2
-1
No files found.
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc
View file @
348949d3
...
...
@@ -50,6 +50,7 @@ const char* PX4FirmwarePlugin::_rattitudeFlightMode = "Rattitude";
const
char
*
PX4FirmwarePlugin
::
_followMeFlightMode
=
"Follow Me"
;
const
char
*
PX4FirmwarePlugin
::
_rtgsFlightMode
=
"Return to Groundstation"
;
const
char
*
PX4FirmwarePlugin
::
_readyFlightMode
=
"Ready"
;
const
char
*
PX4FirmwarePlugin
::
_simpleFlightMode
=
"Simple"
;
/// Tranlates from PX4 custom modes to flight mode names
...
...
@@ -61,6 +62,7 @@ static const struct Modes2Name rgModes2Name[] = {
{
PX4_CUSTOM_MAIN_MODE_RATTITUDE
,
0
,
PX4FirmwarePlugin
::
_rattitudeFlightMode
,
true
,
true
,
true
},
{
PX4_CUSTOM_MAIN_MODE_ALTCTL
,
0
,
PX4FirmwarePlugin
::
_altCtlFlightMode
,
true
,
true
,
true
},
{
PX4_CUSTOM_MAIN_MODE_POSCTL
,
0
,
PX4FirmwarePlugin
::
_posCtlFlightMode
,
true
,
true
,
true
},
{
PX4_CUSTOM_MAIN_MODE_SIMPLE
,
0
,
PX4FirmwarePlugin
::
_simpleFlightMode
,
true
,
false
,
true
},
{
PX4_CUSTOM_MAIN_MODE_AUTO
,
PX4_CUSTOM_SUB_MODE_AUTO_LOITER
,
PX4FirmwarePlugin
::
_holdFlightMode
,
true
,
true
,
true
},
{
PX4_CUSTOM_MAIN_MODE_AUTO
,
PX4_CUSTOM_SUB_MODE_AUTO_MISSION
,
PX4FirmwarePlugin
::
_missionFlightMode
,
true
,
true
,
true
},
{
PX4_CUSTOM_MAIN_MODE_AUTO
,
PX4_CUSTOM_SUB_MODE_AUTO_RTL
,
PX4FirmwarePlugin
::
_rtlFlightMode
,
true
,
true
,
true
},
...
...
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.h
View file @
348949d3
...
...
@@ -81,6 +81,7 @@ public:
static
const
char
*
_landingFlightMode
;
static
const
char
*
_rtgsFlightMode
;
static
const
char
*
_followMeFlightMode
;
static
const
char
*
_simpleFlightMode
;
private:
void
_handleAutopilotVersion
(
Vehicle
*
vehicle
,
mavlink_message_t
*
message
);
...
...
src/FirmwarePlugin/PX4/px4_custom_mode.h
View file @
348949d3
...
...
@@ -50,7 +50,8 @@ enum PX4_CUSTOM_MAIN_MODE {
PX4_CUSTOM_MAIN_MODE_ACRO
,
PX4_CUSTOM_MAIN_MODE_OFFBOARD
,
PX4_CUSTOM_MAIN_MODE_STABILIZED
,
PX4_CUSTOM_MAIN_MODE_RATTITUDE
PX4_CUSTOM_MAIN_MODE_RATTITUDE
,
PX4_CUSTOM_MAIN_MODE_SIMPLE
};
enum
PX4_CUSTOM_SUB_MODE_AUTO
{
...
...
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