1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00

fix: compile error when USE_FEEDFORWARD is undefined

This commit is contained in:
Victor Martinez 2021-07-21 13:06:31 +02:00
parent 6d286e25f1
commit 95eca6abdb

View file

@ -553,9 +553,11 @@ FAST_CODE void processRcCommand(void)
if (isRxDataNew) {
for (int axis = FD_ROLL; axis <= FD_YAW; axis++) {
#ifdef USE_FEEDFORWARD
isDuplicate[axis] = (oldRcCommand[axis] == rcCommand[axis]);
rcCommandDelta[axis] = fabsf(rcCommand[axis] - oldRcCommand[axis]);
oldRcCommand[axis] = rcCommand[axis];
#endif
float angleRate;