1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-17 21:35:37 +03:00

Remove redundant isAdjustingPosition var From nav_fw

Redundant, since line 252 already checks if 'posControl.flags.isAdjustingPosition' is true.
This commit is contained in:
JunwooHWANG 2018-11-27 23:28:03 +09:00 committed by GitHub
parent 4927baa0c3
commit 169f349c05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -258,8 +258,6 @@ static void calculateVirtualPositionTarget_FW(float trackingPeriod)
// Rotate this target shift from body frame to to earth frame and apply to position target
virtualDesiredPosition.x += -rcShiftY * posControl.actualState.sinYaw;
virtualDesiredPosition.y += rcShiftY * posControl.actualState.cosYaw;
posControl.flags.isAdjustingPosition = true;
}
}
}