Fix issue #21 and add aircraft position tracking indicators #29

Merged
olemd merged 2 commits from feature/position-tracking-fixes into main 2025-08-31 11:41:48 +02:00
Showing only changes of commit 4715e8ef4e - Show all commits

Fix Beast decoder to set PositionValid flag when position is decoded

The Beast decoder was not setting PositionValid=true after successfully
decoding aircraft positions, causing position tracking statistics to
show 0 positioned aircraft even when aircraft had valid coordinates.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Ole-Morten Duesund 2025-08-31 11:40:52 +02:00

View file

@ -614,6 +614,7 @@ func (d *Decoder) decodeCPRPosition(aircraft *Aircraft) {
} }
aircraft.Longitude = lon aircraft.Longitude = lon
aircraft.PositionValid = true
// CPR decoding completed successfully // CPR decoding completed successfully
} }