AP_NavEKF2: correct compilation when running MATH_CHECK_INDEXES
This commit is contained in:
parent
009786a338
commit
fb176b544f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user