blackbox-tools icon indicating copy to clipboard operation
blackbox-tools copied to clipboard

correct gpx time by absolute time of blackbox start

Open flohoff opened this issue 6 years ago • 0 comments

In gpx decoding the file only contains the relative timestamp from the beginning of logging. When there was a GPS Fix on Arm there is an absolute timestamp in the log in the ASCII Part (At least with inav)

Use that timestamp to correct gpx timestamps to be able to use the gpx to correlate with camera images with "gpxcorrelate".

Header of blackbox log file:

[...] H Field S encoding:1,1,7,7,7,1 H Firmware type:Cleanflight H Firmware revision:INAV 1.9.1 (03a5c1922) OMNIBUSF4PRO_LEDSTRIPM5 H Firmware date:Apr 21 2018 13:15:03 H Log start datetime:2018-06-16T13:10:49.264+00:00 H Craft name: H P interval:1/1 [ ... ]

Only relative timestamps in gpx file:

<trk><name>Blackbox flight log</name><trkseg>
  <trkpt lat="52.3008762" lon="8.5960688"><ele>57</ele><time>2000-01-01T00:02:02.389080Z</time>

flohoff avatar Jun 17 '18 09:06 flohoff