mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
Corrected missed USE_ACC logic and some minor cleanup (#14093)
This commit is contained in:
parent
f27da4ed8d
commit
7dec49ce42
7 changed files with 13 additions and 5 deletions
|
@ -1328,7 +1328,7 @@ void FAST_CODE pidController(const pidProfile_t *pidProfile, timeUs_t currentTim
|
|||
|
||||
float pidSetpointDelta = 0;
|
||||
|
||||
#ifdef USE_FEEDFORWARD
|
||||
#if defined(USE_FEEDFORWARD) && defined(USE_ACC)
|
||||
if (FLIGHT_MODE(ANGLE_MODE) && pidRuntime.axisInAngleMode[axis]) {
|
||||
// this axis is fully under self-levelling control
|
||||
// it will already have stick based feedforward applied in the input to their angle setpoint
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue