From 8948d736c121fd66ab589c9660a510d95ddd41ff Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 24 Oct 2019 11:32:56 +1100 Subject: [PATCH] Tracker: use ahrs singleton to log ATT, POS and AHRS2 --- AntennaTracker/Log.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AntennaTracker/Log.cpp b/AntennaTracker/Log.cpp index 4743b61848..2549edadd6 100644 --- a/AntennaTracker/Log.cpp +++ b/AntennaTracker/Log.cpp @@ -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 {