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
4b13904f
Commit
4b13904f
authored
Aug 25, 2014
by
Don Gagne
Browse files
Fix Linux compiler warnings
parent
d4b826c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/qgcunittest/PX4RCCalibrationTest.cc
View file @
4b13904f
...
...
@@ -607,15 +607,12 @@ void PX4RCCalibrationTest::_validateParameters(int validateMask)
// Check mapping for all fuctions
for
(
int
chanFunction
=
0
;
chanFunction
<
PX4RCCalibration
::
rcCalFunctionMax
;
chanFunction
++
)
{
int
expectedParameterValue
;
int
expectedChannelValue
;
if
(
PX4RCCalibration
::
_rgFunctionInfo
[
chanFunction
].
required
)
{
// We only map the required functions. All functions should be mapped to the same channel index
expectedParameterValue
=
chanFunction
+
1
;
// 1-based parameter value
expectedChannelValue
=
chanFunction
;
}
else
{
expectedParameterValue
=
0
;
// 0 signals no mapping
expectedChannelValue
=
PX4RCCalibration
::
_chanMax
;
}
if
(
validateMask
&
validateMappingMask
)
{
...
...
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