diff --git a/src/main/flight/pid.h b/src/main/flight/pid.h index 56a89e9382..60efb88a50 100644 --- a/src/main/flight/pid.h +++ b/src/main/flight/pid.h @@ -128,6 +128,9 @@ extern int32_t axisPID_P[3], axisPID_I[3], axisPID_D[3]; bool airmodeWasActivated; extern uint32_t targetPidLooptime; +// PIDweight is a scale factor for PIDs which is derived from the throttle and TPA setting, and 100 = 100% scale means no PID reduction +extern uint8_t PIDweight[3]; + void pidSetController(pidControllerType_e type); void pidResetErrorGyroState(void); void pidStabilisationState(pidStabilisationState_e pidControllerState); diff --git a/src/main/flight/pid_betaflight.c b/src/main/flight/pid_betaflight.c index db07f11bb6..a2dc204d98 100644 --- a/src/main/flight/pid_betaflight.c +++ b/src/main/flight/pid_betaflight.c @@ -62,9 +62,6 @@ extern biquadFilter_t dtermFilterNotch[3]; extern bool dtermNotchInitialised; extern bool dtermBiquadLpfInitialised; -// PIDweight is a scale factor for PIDs which is derived from the throttle and TPA setting, and 100 = 100% scale means no PID reduction -uint8_t PIDweight[3]; - void initFilters(const pidProfile_t *pidProfile); float getdT(void);