diff --git a/src/main/flight/pid.c b/src/main/flight/pid.c index d7d56736d..e1ba58227 100644 --- a/src/main/flight/pid.c +++ b/src/main/flight/pid.c @@ -51,7 +51,7 @@ extern uint8_t motorCount; uint32_t targetPidLooptime; extern float errorLimiter; -extern float angleRate[3], angleRateSmooth[2]; +extern float angleRate[3], angleRateSmooth[3]; int16_t axisPID[3]; diff --git a/src/main/mw.c b/src/main/mw.c index b935b0015..5b282c3e8 100644 --- a/src/main/mw.c +++ b/src/main/mw.c @@ -123,7 +123,7 @@ extern uint8_t PIDweight[3]; uint16_t filteredCycleTime; static bool isRXDataNew; static bool armingCalibrationWasInitialised; -float angleRate[3], angleRateSmooth[2]; +float angleRate[3], angleRateSmooth[3]; extern pidControllerFuncPtr pid_controller;