Commit 8890e394 authored by Lorenz Meier's avatar Lorenz Meier

Merge pull request #842 from DonLakeFlyer/RCCompWarnings

Fix Linux compiler warnings from Pull 840
parents d4b826c3 4b13904f
...@@ -607,15 +607,12 @@ void PX4RCCalibrationTest::_validateParameters(int validateMask) ...@@ -607,15 +607,12 @@ void PX4RCCalibrationTest::_validateParameters(int validateMask)
// Check mapping for all fuctions // Check mapping for all fuctions
for (int chanFunction=0; chanFunction<PX4RCCalibration::rcCalFunctionMax; chanFunction++) { for (int chanFunction=0; chanFunction<PX4RCCalibration::rcCalFunctionMax; chanFunction++) {
int expectedParameterValue; int expectedParameterValue;
int expectedChannelValue;
if (PX4RCCalibration::_rgFunctionInfo[chanFunction].required) { if (PX4RCCalibration::_rgFunctionInfo[chanFunction].required) {
// We only map the required functions. All functions should be mapped to the same channel index // We only map the required functions. All functions should be mapped to the same channel index
expectedParameterValue = chanFunction + 1; // 1-based parameter value expectedParameterValue = chanFunction + 1; // 1-based parameter value
expectedChannelValue = chanFunction;
} else { } else {
expectedParameterValue = 0; // 0 signals no mapping expectedParameterValue = 0; // 0 signals no mapping
expectedChannelValue = PX4RCCalibration::_chanMax;
} }
if (validateMask & validateMappingMask) { if (validateMask & validateMappingMask) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment