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
815fa1e4
Commit
815fa1e4
authored
Jul 31, 2015
by
Lorenz Meier
Browse files
Component controller: Use fixed format
parent
3ce01da8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/AutoPilotPlugins/PX4/AirframeComponentController.cc
View file @
815fa1e4
...
...
@@ -61,15 +61,16 @@ AirframeComponentController::AirframeComponentController(void) :
for
(
unsigned
tindex
=
0
;
tindex
<
AirframeComponentAirframes
::
rgAirframeTypes
.
count
();
tindex
++
)
{
for
(
int
tindex
=
0
;
tindex
<
AirframeComponentAirframes
::
get
()
.
count
();
tindex
++
)
{
const
AirframeComponentAirframes
::
AirframeType_t
*
pType
=
&
AirframeComponentAirframes
::
rgAirframeTypes
.
values
().
at
(
tindex
);
const
AirframeComponentAirframes
::
AirframeType_t
*
pType
=
AirframeComponentAirframes
::
get
()
.
values
().
at
(
tindex
);
AirframeType
*
airframeType
=
new
AirframeType
(
pType
->
name
,
pType
->
imageResource
,
this
);
Q_CHECK_PTR
(
airframeType
);
for
(
unsigned
index
=
0
;
index
<
pType
->
rgAirframeInfo
.
count
();
index
++
)
{
const
AirframeComponentAirframes
::
AirframeInfo_t
*
pInfo
=
&
pType
->
rgAirframeInfo
.
at
(
index
);
for
(
int
index
=
0
;
index
<
pType
->
rgAirframeInfo
.
count
();
index
++
)
{
const
AirframeComponentAirframes
::
AirframeInfo_t
*
pInfo
=
pType
->
rgAirframeInfo
.
at
(
index
);
Q_CHECK_PTR
(
pInfo
);
if
(
_autostartId
==
pInfo
->
autostartId
)
{
Q_ASSERT
(
!
autostartFound
);
...
...
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