From 89f43c03181eb0cf77787a6a8e0e270145cff643 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 25 Mar 2019 23:42:51 +1100 Subject: [PATCH] Tracker: move responsibility for logging into library --- AntennaTracker/sensors.cpp | 3 --- AntennaTracker/system.cpp | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/AntennaTracker/sensors.cpp b/AntennaTracker/sensors.cpp index 0e915be2ac..4b5126ae7a 100644 --- a/AntennaTracker/sensors.cpp +++ b/AntennaTracker/sensors.cpp @@ -30,9 +30,6 @@ void Tracker::update_compass(void) { if (AP::compass().enabled() && compass.read()) { ahrs.set_compass(&compass); - if (should_log(MASK_LOG_COMPASS)) { - logger.Write_Compass(); - } } } diff --git a/AntennaTracker/system.cpp b/AntennaTracker/system.cpp index c863c85cbb..679c3ddd9d 100644 --- a/AntennaTracker/system.cpp +++ b/AntennaTracker/system.cpp @@ -60,6 +60,7 @@ void Tracker::init_tracker() #endif // ENABLE_SCRIPTING // initialise compass + AP::compass().set_log_bit(MASK_LOG_COMPASS); AP::compass().init(); // GPS Initialization