AP_NavEKF2: correct compilation when running MATH_CHECK_INDEXES

This commit is contained in:
Peter Barker 2018-09-11 19:23:24 +10:00 committed by Peter Barker
parent 009786a338
commit fb176b544f

View File

@ -442,7 +442,7 @@ bool NavEKF2_core::InitialiseFilterBootstrap(void)
void NavEKF2_core::CovarianceInit()
{
// zero the matrix
memset(P, 0, sizeof(P));
memset(&P[0][0], 0, sizeof(P));
// attitude error
P[0][0] = 0.1f;