Skip to content

Commit

Permalink
traces: use buffered position without exception
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Jan 10, 2025
1 parent 85c0877 commit f11a5b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion globe_index.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f11a5b8

Please sign in to comment.