Rover: integrate simpler Log_Write_EKF

This commit is contained in:
Randy Mackay 2017-08-22 12:15:06 +09:00
parent 2ab3c5a9c3
commit b7921a8341

View File

@ -292,11 +292,7 @@ void Rover::Log_Write_Attitude()
DataFlash.Log_Write_Attitude(ahrs, targets); DataFlash.Log_Write_Attitude(ahrs, targets);
#if AP_AHRS_NAVEKF_AVAILABLE #if AP_AHRS_NAVEKF_AVAILABLE
#if defined(OPTFLOW) and (OPTFLOW == ENABLED) DataFlash.Log_Write_EKF(ahrs);
DataFlash.Log_Write_EKF(ahrs, optflow.enabled());
#else
DataFlash.Log_Write_EKF(ahrs, false);
#endif
DataFlash.Log_Write_AHRS2(ahrs); DataFlash.Log_Write_AHRS2(ahrs);
#endif #endif
DataFlash.Log_Write_POS(ahrs); DataFlash.Log_Write_POS(ahrs);