Commit 503b0d20 authored by lm's avatar lm

Minor timestamp fix/hack until QGroundControl is completely moved to usecs from msecs

parent 32b8edae
...@@ -389,15 +389,15 @@ quint64 UAS::getUnixTime(quint64 time) ...@@ -389,15 +389,15 @@ quint64 UAS::getUnixTime(quint64 time)
{ {
if (onboardTimeOffset == 0) if (onboardTimeOffset == 0)
{ {
onboardTimeOffset = MG::TIME::getGroundTimeNow() - time; onboardTimeOffset = MG::TIME::getGroundTimeNow() - time/1000;
} }
return time + onboardTimeOffset; return time/1000 + onboardTimeOffset;
} }
else else
{ {
// Time is not zero and larger than 40 years -> has to be // Time is not zero and larger than 40 years -> has to be
// a Unix epoch timestamp. Do nothing. // a Unix epoch timestamp. Do nothing.
return time; return time/1000;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment