fix(mavlink): fix gps utc timestamp

This commit is contained in:
ttechnick 2026-03-24 11:44:20 +01:00 committed by Nick
parent 4a48525e45
commit ecd553da6a
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {