From f11a5b8a288e03ea757544ba989803117fb4e8ca Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Wed, 8 Jan 2025 21:09:27 +0000 Subject: [PATCH] traces: use buffered position without exception --- globe_index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/globe_index.c b/globe_index.c index a499589c..46e1c677 100644 --- a/globe_index.c +++ b/globe_index.c @@ -2581,7 +2581,7 @@ int traceAdd(struct aircraft *a, struct modesMessage *mm, int64_t now, int stale // always try using the buffered position instead of the current one // this should provide a better picture of changing track / speed / altitude - if (elapsed > max_elapsed || 2 * elapsed_buffered > elapsed || elapsed_buffered > 2700) { + if (1 || elapsed > max_elapsed || 2 * elapsed_buffered > elapsed || elapsed_buffered > 2700) { if (traceUsePosBuffered(a)) { if (traceDebug) fprintf(stderr, " buffer\n"); // in some cases we want to add the current point as well