Skip to content

Commit 30163be

Browse files
DataFlashExtractor: bugfix: reset start timer for trajectories
1 parent ed242ef commit 30163be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/dataflashDataExtractor.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ export class DataflashDataExtractor {
340340
if (delta < 200) {
341341
continue
342342
}
343+
start = gpsData.time_boot_ms[i]
343344
if (gpsData.Lat[i] !== 0) {
344345
if (startAltitude === null) {
345346
startAltitude = gpsData.Alt[i]
@@ -378,6 +379,7 @@ export class DataflashDataExtractor {
378379
if (delta < 200) {
379380
continue
380381
}
382+
start = gpsData.time_boot_ms[i]
381383
if (gpsData.Lat[i] !== 0) {
382384
if (startAltitude === null) {
383385
startAltitude = gpsData.Alt[i]

0 commit comments

Comments
 (0)