Limit aircraft-relative CPR to 50km.
This commit is contained in:
parent
568e843b9f
commit
43906f994b
1 changed files with 2 additions and 0 deletions
2
track.c
2
track.c
|
|
@ -293,6 +293,8 @@ static int doLocalCPR(struct aircraft *a, struct modesMessage *mm, uint64_t now,
|
|||
|
||||
if (a->pos_nuc < *nuc)
|
||||
*nuc = a->pos_nuc;
|
||||
|
||||
range_limit = 50e3;
|
||||
} else if (!surface && (Modes.bUserFlags & MODES_USER_LATLON_VALID)) {
|
||||
reflat = Modes.fUserLat;
|
||||
reflon = Modes.fUserLon;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue