DataFlash: accomodate change in EKF2 interface

This commit is contained in:
Paul Riseborough 2015-11-06 22:55:49 +11:00 committed by Andrew Tridgell
parent 243888e923
commit 5b1d6f2aa2

View File

@ -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);
}
}