diff --git a/libraries/AP_Mount/SoloGimbalEKF.cpp b/libraries/AP_Mount/SoloGimbalEKF.cpp index e646e331e0..16715b6024 100644 --- a/libraries/AP_Mount/SoloGimbalEKF.cpp +++ b/libraries/AP_Mount/SoloGimbalEKF.cpp @@ -41,7 +41,7 @@ SoloGimbalEKF::SoloGimbalEKF() : // complete reset void SoloGimbalEKF::reset() { - memset(&states,0,sizeof(states)); + ZERO_FARRAY(states); memset((void *)&gSense,0,sizeof(gSense)); memset(&Cov,0,sizeof(Cov)); TiltCorrectionSquared = 0;