1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

LP-385 - add supports for fractional part of second in gps time

This commit is contained in:
Alessio Morale 2016-08-18 19:27:06 +02:00
parent 88a8e767c4
commit 8f5ec2679c
2 changed files with 2 additions and 1 deletions

View File

@ -439,7 +439,7 @@ static void parse_ubx_nav_timeutc(struct UBXPacket *ubx, __attribute__((unused))
GpsTime.Hour = timeutc->hour;
GpsTime.Minute = timeutc->min;
GpsTime.Second = timeutc->sec;
GpsTime.MilliSecond = (int16_t)timeutc->nano / 1000000;
GPSTimeSet(&GpsTime);
} else {
// Time is not valid, nothing to do

View File

@ -7,6 +7,7 @@
<field name="Hour" units="" type="int8" elements="1"/>
<field name="Minute" units="" type="int8" elements="1"/>
<field name="Second" units="" type="int8" elements="1"/>
<field name="MilliSecond" units="" type="int16" elements="1"/>
<access gcs="readwrite" flight="readwrite"/>
<telemetrygcs acked="false" updatemode="manual" period="0"/>
<telemetryflight acked="false" updatemode="periodic" period="10000"/>