96,9 → 96,11 |
testOscTimer++; |
if (testOscTimer == staticParams.heightControlTestOscPeriod) { |
testOscTimer = 0; |
iHeight = 0; |
if (staticParams.heightControlTestOscAmplitude) |
iHeight = 0; |
} else if (testOscTimer == staticParams.heightControlTestOscPeriod/2) { |
iHeight = 0; |
if (staticParams.heightControlTestOscAmplitude) |
iHeight = 0; |
} |
} |
|
107,8 → 109,6 |
else |
targetHeight = setHeight + (uint16_t)staticParams.heightControlTestOscAmplitude * 25L; |
|
debugOut.analog[31] = targetHeight/100L; |
|
//if (staticParams.) |
// height, in meters (so the division factor is: 100) |
// debugOut.analog[24] = (117100 - filteredAirPressure) / 100; |