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:
parent
6d286e25f1
commit
95eca6abdb
1 changed files with 2 additions and 0 deletions
|
@ -553,9 +553,11 @@ FAST_CODE void processRcCommand(void)
|
||||||
if (isRxDataNew) {
|
if (isRxDataNew) {
|
||||||
for (int axis = FD_ROLL; axis <= FD_YAW; axis++) {
|
for (int axis = FD_ROLL; axis <= FD_YAW; axis++) {
|
||||||
|
|
||||||
|
#ifdef USE_FEEDFORWARD
|
||||||
isDuplicate[axis] = (oldRcCommand[axis] == rcCommand[axis]);
|
isDuplicate[axis] = (oldRcCommand[axis] == rcCommand[axis]);
|
||||||
rcCommandDelta[axis] = fabsf(rcCommand[axis] - oldRcCommand[axis]);
|
rcCommandDelta[axis] = fabsf(rcCommand[axis] - oldRcCommand[axis]);
|
||||||
oldRcCommand[axis] = rcCommand[axis];
|
oldRcCommand[axis] = rcCommand[axis];
|
||||||
|
#endif
|
||||||
|
|
||||||
float angleRate;
|
float angleRate;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue