1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

OP-1309 put altitude calls into #ifdef so it compiles on coptercontrol

This commit is contained in:
Corvus Corax 2014-05-01 12:54:56 +02:00
parent 6993570cc9
commit 09a5578f5a

View File

@ -229,12 +229,14 @@ static void stabilizationOuterloopTask()
}
} else {
switch (cast_struct_to_array(enabled, enabled.Roll)[t]) {
#ifdef REVOLUTION
case STABILIZATIONSTATUS_OUTERLOOP_ALTITUDE:
rateDesiredAxis[t] = stabilizationAltitudeHold(stabilizationDesiredAxis[t], ALTITUDEHOLD, reinit);
break;
case STABILIZATIONSTATUS_OUTERLOOP_VERTICALVELOCITY:
rateDesiredAxis[t] = stabilizationAltitudeHold(stabilizationDesiredAxis[t], ALTITUDEVARIO, reinit);
break;
#endif /* REVOLUTION */
case STABILIZATIONSTATUS_OUTERLOOP_DIRECT:
default:
rateDesiredAxis[t] = stabilizationDesiredAxis[t];