Better GPS time synchronization

replace/7682a57a8e0698108fdc0b4e44162ffad3d85e4d
Niccolò Izzo 2021-02-17 14:58:20 +01:00
rodzic 57a1d11228
commit f49655c44d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -38,7 +38,7 @@ void gps_taskFunc(char *line, __attribute__((unused)) int len, state_t *state)
state->gps_data.longitude = minmea_tocoord(&frame.longitude); state->gps_data.longitude = minmea_tocoord(&frame.longitude);
state->gps_data.timestamp.hour = frame.time.hours; state->gps_data.timestamp.hour = frame.time.hours;
state->gps_data.timestamp.minute = frame.time.minutes; state->gps_data.timestamp.minute = frame.time.minutes;
state->gps_data.timestamp.second = frame.time.seconds + 1; state->gps_data.timestamp.second = frame.time.seconds;
state->gps_data.timestamp.day = 0; state->gps_data.timestamp.day = 0;
state->gps_data.timestamp.date = frame.date.day; state->gps_data.timestamp.date = frame.date.day;
state->gps_data.timestamp.month = frame.date.month; state->gps_data.timestamp.month = frame.date.month;