mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
fix(mavlink): fix gps utc timestamp
This commit is contained in:
parent
4a48525e45
commit
ecd553da6a
@ -68,7 +68,7 @@ private:
|
||||
hrt_abstime now{};
|
||||
|
||||
if (_sensor_gps_sub.update(&gps)) {
|
||||
if (gps.time_utc_usec > 0) {
|
||||
if (gps.time_utc_usec <= 0) {
|
||||
msg.time_usec = gps.timestamp;
|
||||
|
||||
} else {
|
||||
|
||||
@ -68,7 +68,7 @@ private:
|
||||
hrt_abstime now{};
|
||||
|
||||
if (_sensor_gps_sub.update(&gps)) {
|
||||
if (gps.time_utc_usec > 0) {
|
||||
if (gps.time_utc_usec <= 0) {
|
||||
msg.time_usec = gps.timestamp;
|
||||
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user