Rover: fixed EKF3 logging

This commit is contained in:
Andrew Tridgell 2016-12-18 12:10:54 +11:00
parent bebc7e4519
commit 0266cb61e0

View File

@ -283,9 +283,9 @@ void Rover::Log_Write_Attitude()
#if AP_AHRS_NAVEKF_AVAILABLE
#if defined(OPTFLOW) and (OPTFLOW == ENABLED)
DataFlash.Log_Write_EKF2(ahrs,optflow.enabled());
DataFlash.Log_Write_EKF(ahrs,optflow.enabled());
#else
DataFlash.Log_Write_EKF2(ahrs,false);
DataFlash.Log_Write_EKF(ahrs,false);
#endif
DataFlash.Log_Write_AHRS2(ahrs);
#endif