Browse Source

AP_GPS: Take responsibility for logging the GPS if the EKF wants logging

mission-4.1.18
Michael du Breuil 6 years ago committed by Andrew Tridgell
parent
commit
f857eb4640
  1. 3
      libraries/AP_GPS/AP_GPS.cpp

3
libraries/AP_GPS/AP_GPS.cpp

@ -695,8 +695,7 @@ void AP_GPS::update_instance(uint8_t instance) @@ -695,8 +695,7 @@ void AP_GPS::update_instance(uint8_t instance)
#ifndef HAL_BUILD_AP_PERIPH
if (data_should_be_logged &&
should_log() &&
!AP::ahrs().have_ekf_logging()) {
(should_log() || AP::ahrs().have_ekf_logging())) {
AP::logger().Write_GPS(instance);
}

Loading…
Cancel
Save