mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 15:23:57 -04:00
Copter: GPS now logs its own data
This commit is contained in:
parent
64a8de42da
commit
04885b127c
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user