Skip to content

Commit

Permalink
MAVLinkInterface: add timestamp decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Sep 19, 2024
1 parent f836822 commit 5c7185b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ExtLibs/ArduPilot/Mavlink/MAVLinkInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5005,6 +5005,9 @@ public async Task<MAVLinkMessage> readPacketAsync()
return MAVLinkMessage.Invalid;
}
}

var timestamp = new DateTime(2015, 1, 1).AddMilliseconds(message.sigTimestamp / 100.0);
var delta = DateTime.UtcNow - timestamp;
}

// packet is now verified
Expand Down

0 comments on commit 5c7185b

Please sign in to comment.