AP_NavEKF3: log correct GPS for replay

This commit is contained in:
priseborough 2017-01-30 10:04:44 +11:00 committed by Randy Mackay
parent 407a60e599
commit 18927395d7

View File

@ -583,7 +583,7 @@ void NavEKF3::check_log_write(void)
logging.log_compass = false;
}
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;
}
if (logging.log_baro) {