mlat-client icon indicating copy to clipboard operation
mlat-client copied to clipboard

RC position sanity incorrect for LON

Open marcus-aa opened this issue 2 years ago • 1 comments

https://github.com/mutability/mlat-client/commit/55cf9809e8b7f9fa2330ae84b89e66b2be20e29a

row 337, isn't the sanity check wrong? Excludes all longitudes except 180 exactly?

if lat >= -90 and lat <= 90 and lon >= -180 and lon <= -180:

should be

if lat >= -90 and lat <= 90 and lon >= -180 and lon <= 180:

marcus-aa avatar Feb 27 '23 02:02 marcus-aa

Yeah, looks wrong. piaware doesn't actually rely on this path which is possibly why I never noticed ..

mutability avatar Feb 27 '23 11:02 mutability