mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 15:53:56 -04:00
AP_GPS: Take responsibility for logging the GPS if the EKF wants logging
This commit is contained in:
parent
7178655cbe
commit
f857eb4640
@ -695,8 +695,7 @@ void AP_GPS::update_instance(uint8_t instance)
|
|||||||
|
|
||||||
#ifndef HAL_BUILD_AP_PERIPH
|
#ifndef HAL_BUILD_AP_PERIPH
|
||||||
if (data_should_be_logged &&
|
if (data_should_be_logged &&
|
||||||
should_log() &&
|
(should_log() || AP::ahrs().have_ekf_logging())) {
|
||||||
!AP::ahrs().have_ekf_logging()) {
|
|
||||||
AP::logger().Write_GPS(instance);
|
AP::logger().Write_GPS(instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user