mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 20:48:33 -04:00
Sub: GPS now logs its own data
This commit is contained in:
parent
5ef417a669
commit
a10c843e6e
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user