Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
840889b1
Commit
840889b1
authored
Jul 08, 2017
by
Daniel Agar
Committed by
Lorenz Meier
Jul 09, 2017
Browse files
PX4 copy current custom modes
parent
12a4359d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc
View file @
840889b1
...
...
@@ -74,7 +74,8 @@ PX4FirmwarePlugin::PX4FirmwarePlugin(void)
{
PX4_CUSTOM_MAIN_MODE_RATTITUDE
,
0
,
true
,
true
,
true
},
{
PX4_CUSTOM_MAIN_MODE_ALTCTL
,
0
,
true
,
true
,
true
},
{
PX4_CUSTOM_MAIN_MODE_POSCTL
,
0
,
true
,
true
,
true
},
{
PX4_CUSTOM_MAIN_MODE_SIMPLE
,
0
,
true
,
false
,
true
},
// simple can't be set by the user right now
{
PX4_CUSTOM_MAIN_MODE_SIMPLE
,
0
,
false
,
false
,
true
},
{
PX4_CUSTOM_MAIN_MODE_AUTO
,
PX4_CUSTOM_SUB_MODE_AUTO_LOITER
,
true
,
true
,
true
},
{
PX4_CUSTOM_MAIN_MODE_AUTO
,
PX4_CUSTOM_SUB_MODE_AUTO_MISSION
,
true
,
true
,
true
},
{
PX4_CUSTOM_MAIN_MODE_AUTO
,
PX4_CUSTOM_SUB_MODE_AUTO_RTL
,
true
,
true
,
true
},
...
...
src/FirmwarePlugin/PX4/px4_custom_mode.h
View file @
840889b1
...
...
@@ -34,7 +34,7 @@
/**
* @file px4_custom_mode.h
* PX4 custom flight modes
*
*
Copied from PX4 2017-07-08 - https://github.com/PX4/Firmware/blob/master/src/modules/commander/px4_custom_mode.h#L45
*/
#ifndef PX4_CUSTOM_MODE_H_
...
...
@@ -50,8 +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_SIMPLE
PX4_CUSTOM_MAIN_MODE_RATTITUDE
,
PX4_CUSTOM_MAIN_MODE_SIMPLE
/* unused, but reserved for future use */
};
enum
PX4_CUSTOM_SUB_MODE_AUTO
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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