Skip to content

Commit 5c7185b

Browse files
committed
MAVLinkInterface: add timestamp decoding
1 parent f836822 commit 5c7185b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ExtLibs/ArduPilot/Mavlink/MAVLinkInterface.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5005,6 +5005,9 @@ public async Task<MAVLinkMessage> readPacketAsync()
50055005
return MAVLinkMessage.Invalid;
50065006
}
50075007
}
5008+
5009+
var timestamp = new DateTime(2015, 1, 1).AddMilliseconds(message.sigTimestamp / 100.0);
5010+
var delta = DateTime.UtcNow - timestamp;
50085011
}
50095012

50105013
// packet is now verified

0 commit comments

Comments
 (0)