diff --git a/libraries/AP_NavEKF3/AP_NavEKF3.cpp b/libraries/AP_NavEKF3/AP_NavEKF3.cpp index 42342b463d..b9c0410deb 100644 --- a/libraries/AP_NavEKF3/AP_NavEKF3.cpp +++ b/libraries/AP_NavEKF3/AP_NavEKF3.cpp @@ -610,10 +610,6 @@ void NavEKF3::check_log_write(void) AP::logger().Write_Compass(imuSampleTime_us); logging.log_compass = false; } - if (logging.log_gps) { - AP::logger().Write_GPS(AP::gps().primary_sensor(), imuSampleTime_us); - logging.log_gps = false; - } if (logging.log_baro) { AP::logger().Write_Baro(imuSampleTime_us); logging.log_baro = false; diff --git a/libraries/AP_NavEKF3/AP_NavEKF3.h b/libraries/AP_NavEKF3/AP_NavEKF3.h index 025d5e8d22..8c3e76f18d 100644 --- a/libraries/AP_NavEKF3/AP_NavEKF3.h +++ b/libraries/AP_NavEKF3/AP_NavEKF3.h @@ -486,7 +486,6 @@ private: struct { bool enabled:1; bool log_compass:1; - bool log_gps:1; bool log_baro:1; bool log_imu:1; } logging; diff --git a/libraries/AP_NavEKF3/AP_NavEKF3_Measurements.cpp b/libraries/AP_NavEKF3/AP_NavEKF3_Measurements.cpp index aa388e0c8d..03f862089e 100644 --- a/libraries/AP_NavEKF3/AP_NavEKF3_Measurements.cpp +++ b/libraries/AP_NavEKF3/AP_NavEKF3_Measurements.cpp @@ -619,8 +619,6 @@ void NavEKF3_core::readGpsData() gpsNotAvailable = false; } - frontend->logging.log_gps = true; - // if the GPS has yaw data then input that as well float yaw_deg, yaw_accuracy_deg; if (AP::gps().gps_yaw_deg(yaw_deg, yaw_accuracy_deg)) {