Sub: GPS now logs its own data

This commit is contained in:
Peter Barker 2018-04-11 22:22:23 +10:00 committed by Randy Mackay
parent 5ef417a669
commit a10c843e6e

View File

@ -303,13 +303,8 @@ void Sub::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;
}
}