Plane: integrate simpler Log_Write_EKF

This commit is contained in:
Randy Mackay 2017-08-22 12:15:26 +09:00
parent b7921a8341
commit 6a4c8efd7b
1 changed files with 1 additions and 5 deletions

View File

@ -195,11 +195,7 @@ void Plane::Log_Write_Attitude(void)
}
#if AP_AHRS_NAVEKF_AVAILABLE
#if OPTFLOW == ENABLED
DataFlash.Log_Write_EKF(ahrs,optflow.enabled());
#else
DataFlash.Log_Write_EKF(ahrs,false);
#endif
DataFlash.Log_Write_EKF(ahrs);
DataFlash.Log_Write_AHRS2(ahrs);
#endif
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL