How to get timestamp from tlog format?

Andrew has told me that the tlog format is very simple - an 8 byte microsecond timestamp followed by the raw MAVLink packet.
I have parsed Mavlink packets from tlog file, but I can't get timestamp. What is the varible type for this timestamp? uint64_t or double? and how to get hour, minute and second from it?

Thanks.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Hi,

    Try to download (git clone really) the source code for Mission Planner. There you will find it (eventually).

    It is some 8 byte type for a timestamp, correct. For some reason I don't know, as far as I remember the 8 bytes are reversed in order. So try re-reversing and see if that helps.

    Regards

    Soren

This reply was deleted.

Activity