AP_Mount: use ZERO_FARRAY()

This commit is contained in:
Andrew Tridgell 2021-06-25 13:04:37 +10:00
parent 26820c3a8c
commit 4dfa6258d9

View File

@ -41,7 +41,7 @@ SoloGimbalEKF::SoloGimbalEKF() :
// complete reset // complete reset
void SoloGimbalEKF::reset() void SoloGimbalEKF::reset()
{ {
memset(&states,0,sizeof(states)); ZERO_FARRAY(states);
memset((void *)&gSense,0,sizeof(gSense)); memset((void *)&gSense,0,sizeof(gSense));
memset(&Cov,0,sizeof(Cov)); memset(&Cov,0,sizeof(Cov));
TiltCorrectionSquared = 0; TiltCorrectionSquared = 0;