mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 17:18:28 -04:00
Copter: integrate simpler Log_Write_EKF
This commit is contained in:
parent
179ebc5162
commit
215bd4208f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user