mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
Rover: integrate simpler Log_Write_EKF
This commit is contained in:
parent
2ab3c5a9c3
commit
b7921a8341
@ -292,11 +292,7 @@ void Rover::Log_Write_Attitude()
|
|||||||
DataFlash.Log_Write_Attitude(ahrs, targets);
|
DataFlash.Log_Write_Attitude(ahrs, targets);
|
||||||
|
|
||||||
#if AP_AHRS_NAVEKF_AVAILABLE
|
#if AP_AHRS_NAVEKF_AVAILABLE
|
||||||
#if defined(OPTFLOW) and (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);
|
||||||
#endif
|
#endif
|
||||||
DataFlash.Log_Write_POS(ahrs);
|
DataFlash.Log_Write_POS(ahrs);
|
||||||
|
Loading…
Reference in New Issue
Block a user