AP_GPS: fixed time handling with NMEA driver

This commit is contained in:
Andrew Tridgell 2015-07-20 09:15:32 +10:00
parent a852e48f37
commit 3b1b7ea029

View File

@ -280,6 +280,7 @@ bool AP_GPS_NMEA::_term_complete()
state.ground_speed = _new_speed*0.01f;
state.ground_course_cd = _new_course;
make_gps_time(_new_date, _new_time * 10);
state.last_gps_time_ms = hal.scheduler->millis();
// To-Do: add support for proper reporting of 2D and 3D fix
state.status = AP_GPS::GPS_OK_FIX_3D;
fill_3d_velocity();