AP_NavEKF2: fixed multi-core yaw reset

thanks to Alex Burka for finding this
This commit is contained in:
Andrew Tridgell 2020-10-24 10:20:42 +11:00 committed by Peter Barker
parent fcccdcc936
commit dc32f7a12f

View File

@ -1693,7 +1693,7 @@ bool NavEKF2::isExtNavUsedForYaw() const
void NavEKF2::requestYawReset(void)
{
for (uint8_t i = 0; i < num_cores; i++) {
core[primary].EKFGSF_requestYawReset();
core[i].EKFGSF_requestYawReset();
}
}