Skip to content

Commit

Permalink
add jaero exception to sbs range limit
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Aug 25, 2024
1 parent 61b77e1 commit 6f9b0b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions track.c
Original file line number Diff line number Diff line change
Expand Up @@ -2495,8 +2495,8 @@ struct aircraft *trackUpdateFromMessage(struct modesMessage *mm) {
}
if (old_jaero) {
// avoid using already received positions for JAERO input
} else if (mm->receiver_distance > Modes.maxRange) {
// ignore positions out of receiver range
} else if (mm->receiver_distance > Modes.maxRange && mm->source != SOURCE_JAERO) {
// ignore positions out of receiver range unless it's jaero
} else if (mm->source == SOURCE_MLAT && mm->mlatEPU > 2 * a->mlatEPU
&& imin((int)(3000.0f * logf((float)mm->mlatEPU / (float)a->mlatEPU)), TRACE_STALE * 3 / 4) > (int64_t) trackDataAge(mm->sysTimestamp, &a->pos_reliable_valid)
) {
Expand Down

0 comments on commit 6f9b0b8

Please sign in to comment.