mirror of https://github.com/ArduPilot/ardupilot
Copter: integrate simpler Log_Write_EKF
This commit is contained in:
parent
e13f4d0d56
commit
def17582c6
|
@ -239,11 +239,7 @@ void Copter::Log_Write_Attitude()
|
||||||
// Write an EKF and POS packet
|
// Write an EKF and POS packet
|
||||||
void Copter::Log_Write_EKF_POS()
|
void Copter::Log_Write_EKF_POS()
|
||||||
{
|
{
|
||||||
#if 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);
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||||
sitl.Log_Write_SIMSTATE(&DataFlash);
|
sitl.Log_Write_SIMSTATE(&DataFlash);
|
||||||
|
|
Loading…
Reference in New Issue