Fix CPR zone ambiguity causing systematic eastward position bias #20
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: olemd/skyview#20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/cpr-zone-ambiguity"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes Issue #18 by correcting the CPR (Compact Position Reporting) global decoding algorithm that was causing aircraft to appear tens of kilometers east of their actual positions.
Problem
Aircraft positions were systematically displaced eastward due to incorrect longitude zone calculations in the CPR decoding algorithm:
Root Cause
The CPR longitude zone calculation always used
NL-1
regardless of frame type, violating the specification:NL
zones, odd frames should useNL-1
zonesNL-1
, causing systematic eastward displacementSolution
✅ Implement correct CPR global decoding per RTCA DO-260B specification:
ni = max(1, NL - 0) = max(1, NL)
ni = max(1, NL - 1)
✅ Add comprehensive documentation with authoritative source references:
Verification
Test plan
🤖 Generated with Claude Code