From 2ed6ee1e396feaebca8335323927a672f7ce3483 Mon Sep 17 00:00:00 2001 From: blckmn Date: Thu, 23 Jun 2016 20:36:09 +1000 Subject: [PATCH] FIX: AngleRateSmooth array to small to hold YAW axis --- src/main/flight/pid.c | 2 +- src/main/mw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;