diff --git a/ArduCopter/ArduCopter.cpp b/ArduCopter/ArduCopter.cpp index 270b60b4bd..2da93ee51e 100644 --- a/ArduCopter/ArduCopter.cpp +++ b/ArduCopter/ArduCopter.cpp @@ -310,10 +310,6 @@ void Copter::update_batt_compass(void) compass.set_throttle(motors->get_throttle()); compass.set_voltage(battery.voltage()); compass.read(); - // log compass information - if (should_log(MASK_LOG_COMPASS) && !ahrs.have_ekf_logging()) { - logger.Write_Compass(); - } } } diff --git a/ArduCopter/system.cpp b/ArduCopter/system.cpp index 4480a58765..d6f36c7cc0 100644 --- a/ArduCopter/system.cpp +++ b/ArduCopter/system.cpp @@ -137,6 +137,7 @@ void Copter::init_ardupilot() gps.set_log_gps_bit(MASK_LOG_GPS); gps.init(serial_manager); + AP::compass().set_log_bit(MASK_LOG_COMPASS); AP::compass().init(); #if OPTFLOW == ENABLED