Copter: integrate simpler Log_Write_EKF

This commit is contained in:
Randy Mackay 2017-08-22 12:14:37 +09:00
parent 179ebc5162
commit 215bd4208f

View File

@ -388,11 +388,7 @@ void Copter::Log_Write_Attitude()
// Write an EKF and POS packet
void Copter::Log_Write_EKF_POS()
{
#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);
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
sitl.Log_Write_SIMSTATE(&DataFlash);