Copter: GPS now logs its own data

This commit is contained in:
Peter Barker 2018-04-11 22:19:24 +10:00 committed by Randy Mackay
parent 64a8de42da
commit 04885b127c

View File

@ -468,13 +468,8 @@ void Copter::update_GPS(void)
for (uint8_t i=0; i<gps.num_sensors(); i++) {
if (gps.last_message_time_ms(i) != last_gps_reading[i]) {
last_gps_reading[i] = gps.last_message_time_ms(i);
// log GPS message
if (should_log(MASK_LOG_GPS) && !ahrs.have_ekf_logging()) {
DataFlash.Log_Write_GPS(gps, i);
}
gps_updated = true;
break;
}
}