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
418631ac
Commit
418631ac
authored
Feb 26, 2017
by
Don Gagne
Committed by
GitHub
Feb 26, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4625 from DonLakeFlyer/FlightModeOverride
Allow third-party flight mode overrides
parents
c4da6953
9e29a3b9
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
50 deletions
+70
-50
PX4FirmwarePlugin.cc
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc
+58
-50
PX4FirmwarePlugin.h
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.h
+12
-0
No files found.
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc
View file @
418631ac
This diff is collapsed.
Click to expand it.
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.h
View file @
418631ac
...
...
@@ -83,6 +83,18 @@ public:
static
const
char
*
_followMeFlightMode
;
static
const
char
*
_simpleFlightMode
;
protected:
typedef
struct
{
uint8_t
main_mode
;
uint8_t
sub_mode
;
QString
name
;
///< Name for flight mode
bool
canBeSet
;
///< true: Vehicle can be set to this flight mode
bool
fixedWing
;
/// fixed wing compatible
bool
multiRotor
;
/// multi rotor compatible
}
FlightModeInfo_t
;
QList
<
FlightModeInfo_t
>
_flightModeInfoList
;
private:
void
_handleAutopilotVersion
(
Vehicle
*
vehicle
,
mavlink_message_t
*
message
);
...
...
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