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
dd6ab7ff
Commit
dd6ab7ff
authored
Feb 12, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to latest mavlink headers
Put back commented out code
parent
e0fed930
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
AirframeComponent.cc
src/AutoPilotPlugins/PX4/AirframeComponent.cc
+10
-8
No files found.
src/AutoPilotPlugins/PX4/AirframeComponent.cc
View file @
dd6ab7ff
...
...
@@ -30,9 +30,6 @@
/// @brief Parameters which signal a change in setupComplete state
static
const
char
*
triggerParams
[]
=
{
"SYS_AUTOSTART"
,
NULL
};
#if 0
// Broken by latest mavlink module changes. Not used yet. Comment out for now.
// Discussing mavlink fix.
struct
mavType
{
int
type
;
const
char
*
description
;
...
...
@@ -61,18 +58,19 @@ static const struct mavType mavTypeInfo[] = {
{
MAV_TYPE_ONBOARD_CONTROLLER
,
"Onbard companion controller"
},
{
MAV_TYPE_VTOL_DUOROTOR
,
"Two-rotor VTOL"
},
{
MAV_TYPE_VTOL_QUADROTOR
,
"Quad-rotor VTOL"
},
{
MAV_TYPE_VTOL_RESERVED1
,
"Reserved"
},
{
MAV_TYPE_VTOL_RESERVED2
,
"Reserved"
},
{
MAV_TYPE_VTOL_RESERVED3
,
"Reserved"
},
{
MAV_TYPE_VTOL_RESERVED4
,
"Reserved"
},
{
MAV_TYPE_VTOL_RESERVED5
,
"Reserved"
},
{
MAV_TYPE_GIMBAL
,
"Gimbal"
},
};
static
size_t
cMavTypes
=
sizeof
(
mavTypeInfo
)
/
sizeof
(
mavTypeInfo
[
0
]);
#endif
AirframeComponent
::
AirframeComponent
(
UASInterface
*
uas
,
AutoPilotPlugin
*
autopilot
,
QObject
*
parent
)
:
PX4Component
(
uas
,
autopilot
,
parent
),
_name
(
tr
(
"Airframe"
))
{
#if 0
// Broken by latest mavlink module changes. Not used yet. Comment out for now.
// Discussing mavlink fix.
Q_UNUSED
(
mavTypeInfo
);
// Keeping this around for later use
// Validate that our mavTypeInfo array hasn't gotten out of sync
...
...
@@ -102,6 +100,11 @@ AirframeComponent::AirframeComponent(UASInterface* uas, AutoPilotPlugin* autopil
MAV_TYPE_ONBOARD_CONTROLLER
,
MAV_TYPE_VTOL_DUOROTOR
,
MAV_TYPE_VTOL_QUADROTOR
,
MAV_TYPE_VTOL_RESERVED1
,
MAV_TYPE_VTOL_RESERVED2
,
MAV_TYPE_VTOL_RESERVED3
,
MAV_TYPE_VTOL_RESERVED4
,
MAV_TYPE_VTOL_RESERVED5
,
MAV_TYPE_GIMBAL
,
};
Q_UNUSED
(
mavTypes
);
// Keeping this around for later use
...
...
@@ -109,7 +112,6 @@ AirframeComponent::AirframeComponent(UASInterface* uas, AutoPilotPlugin* autopil
for
(
size_t
i
=
0
;
i
<
cMavTypes
;
i
++
)
{
Q_ASSERT
(
mavTypeInfo
[
i
].
type
==
mavTypes
[
i
]);
}
#endif
}
QString
AirframeComponent
::
name
(
void
)
const
...
...
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