Tracker: use ahrs singleton to log ATT, POS and AHRS2

This commit is contained in:
Peter Barker 2019-10-24 11:32:56 +11:00 committed by Andrew Tridgell
parent 2069da9f53
commit 8948d736c1
1 changed files with 3 additions and 3 deletions

View File

@ -10,13 +10,13 @@ void Tracker::Log_Write_Attitude()
Vector3f targets;
targets.y = nav_status.pitch * 100.0f;
targets.z = wrap_360_cd(nav_status.bearing * 100.0f);
logger.Write_Attitude(ahrs, targets);
logger.Write_Attitude(targets);
AP::ahrs_navekf().Log_Write();
logger.Write_AHRS2(ahrs);
logger.Write_AHRS2();
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
sitl.Log_Write_SIMSTATE();
#endif
logger.Write_POS(ahrs);
logger.Write_POS();
}
struct PACKED log_Vehicle_Baro {