Best way to get timestamped synchronous data

Hello,

I am doing some data analysis on Arduplane SIL flights and need the data in a time stamped and synchronized form (all data at 50Hz for example).  What is the best way to obtain this?

The tlogs are one possibility, but the entries are not time stamped.

The mavlogdumps are time stamped, but the time stamps reflect the time the packet was received by the ground station, not when they occurred, so there may be inaccuracies.  e.g., sometimes I see 2 messages of the same type in one packet.  The times aren't at a constant rate.  Moreover, the time stamp is accurate to only 0.01 seconds.

Any advice would be greatly appreciated.  Thanks.

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

Join diydrones

Email me when people reply –

Replies

  • Hi,

    the best way to get time stamped "raw" data, would be to modify the code that stores the data onboard in the data flash:

         ArduPlane/Log.pde/

    to save time stamps and print those time stamps on console when the log is read and output in the serial console. Introducing time stamps in mavlink or APMPlanner will give you incorrect time stamps as they would reflect the transmission time and not the measurement time.

    For this you will need to build and upload your own version of APM.

    Cheers

    Ralph

This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…