mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
DataFlash: accomodate change in EKF2 interface
This commit is contained in:
parent
243888e923
commit
5b1d6f2aa2
@ -1257,9 +1257,8 @@ void DataFlash_Class::Log_Write_EKF(AP_AHRS_NavEKF &ahrs, bool optFlowEnabled)
|
||||
WriteBlock(&pkt5, sizeof(pkt5));
|
||||
}
|
||||
}
|
||||
|
||||
// do EKF2 as well if enabled
|
||||
if (ahrs.get_NavEKF2().enabled()) {
|
||||
// only log EKF2 if enabled
|
||||
if (ahrs.get_NavEKF2().activeCores() > 0) {
|
||||
Log_Write_EKF2(ahrs, optFlowEnabled);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user