AP_NavEKF3: 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 dc32f7a12f
commit a4716fb9bf

View File

@ -978,7 +978,7 @@ void NavEKF3::checkLaneSwitch(void)
void NavEKF3::requestYawReset(void) void NavEKF3::requestYawReset(void)
{ {
for (uint8_t i = 0; i < num_cores; i++) { for (uint8_t i = 0; i < num_cores; i++) {
core[primary].EKFGSF_requestYawReset(); core[i].EKFGSF_requestYawReset();
} }
} }