Copter: enabled EKF and SIMSTATE flash logging

This commit is contained in:
Andrew Tridgell 2014-01-04 11:51:57 +11:00
parent bb4789a875
commit 5606e2f4a7

View File

@ -478,6 +478,14 @@ static void Log_Write_Attitude()
yaw : (uint16_t)ahrs.yaw_sensor
};
DataFlash.WriteBlock(&pkt, sizeof(pkt));
#if AP_AHRS_NAVEKF_AVAILABLE
DataFlash.Log_Write_EKF(ahrs);
DataFlash.Log_Write_AHRS2(ahrs);
#endif
#if CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
sitl.Log_Write_SIMSTATE(DataFlash);
#endif
}
struct PACKED log_Mode {