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
ce368427
Commit
ce368427
authored
Jul 09, 2019
by
Tomaz Canabrava
Committed by
Daniel Agar
Jul 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More lists to bracket initializer
parent
0813a407
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
PowerComponent.cc
src/AutoPilotPlugins/PX4/PowerComponent.cc
+1
-4
SensorsComponent.cc
src/AutoPilotPlugins/PX4/SensorsComponent.cc
+1
-1
No files found.
src/AutoPilotPlugins/PX4/PowerComponent.cc
View file @
ce368427
...
...
@@ -49,10 +49,7 @@ bool PowerComponent::setupComplete(void) const
QStringList
PowerComponent
::
setupCompleteChangedTriggerList
(
void
)
const
{
QStringList
triggerList
;
triggerList
<<
"BAT_V_CHARGED"
<<
"BAT_V_EMPTY"
<<
"BAT_N_CELLS"
;
return
triggerList
;
return
{
"BAT_V_CHARGED"
,
"BAT_V_EMPTY"
,
"BAT_N_CELLS"
};
}
QUrl
PowerComponent
::
setupSource
(
void
)
const
...
...
src/AutoPilotPlugins/PX4/SensorsComponent.cc
View file @
ce368427
...
...
@@ -26,7 +26,7 @@ SensorsComponent::SensorsComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot,
VehicleComponent
(
vehicle
,
autopilot
,
parent
),
_name
(
tr
(
"Sensors"
))
{
_deviceIds
<<
QStringLiteral
(
"CAL_GYRO0_ID"
)
<<
QStringLiteral
(
"CAL_ACC0_ID"
)
;
_deviceIds
=
QStringList
({
QStringLiteral
(
"CAL_GYRO0_ID"
),
QStringLiteral
(
"CAL_ACC0_ID"
)
}
;
}
QString
SensorsComponent
::
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