mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 11:13:34 +08:00
UBlox: Check valid time bit for NAV_TIMEUTC messages (used for Ublox 6 and earlier)
This commit is contained in:
@@ -827,6 +827,7 @@ UBX::payload_rx_done(void)
|
|||||||
case UBX_MSG_NAV_TIMEUTC:
|
case UBX_MSG_NAV_TIMEUTC:
|
||||||
UBX_TRACE_RXMSG("Rx NAV-TIMEUTC\n");
|
UBX_TRACE_RXMSG("Rx NAV-TIMEUTC\n");
|
||||||
|
|
||||||
|
if(_buf.payload_rx_nav_timeutc.valid & UBX_RX_NAV_TIMEUTC_VALID_VALIDUTC)
|
||||||
{
|
{
|
||||||
// convert to unix timestamp
|
// convert to unix timestamp
|
||||||
struct tm timeinfo;
|
struct tm timeinfo;
|
||||||
|
|||||||
Reference in New Issue
Block a user