mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 09:43:57 -04:00
AP_NavEKF2: log correct GPS for replay
This commit is contained in:
parent
01551a4423
commit
407a60e599
@ -585,7 +585,7 @@ void NavEKF2::check_log_write(void)
|
|||||||
logging.log_compass = false;
|
logging.log_compass = false;
|
||||||
}
|
}
|
||||||
if (logging.log_gps) {
|
if (logging.log_gps) {
|
||||||
DataFlash_Class::instance()->Log_Write_GPS(_ahrs->get_gps(), 0, imuSampleTime_us);
|
DataFlash_Class::instance()->Log_Write_GPS(_ahrs->get_gps(), _ahrs->get_gps().primary_sensor(), imuSampleTime_us);
|
||||||
logging.log_gps = false;
|
logging.log_gps = false;
|
||||||
}
|
}
|
||||||
if (logging.log_baro) {
|
if (logging.log_baro) {
|
||||||
|
Loading…
Reference in New Issue
Block a user