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>
This commit is contained in:
Ole-Morten Duesund 2025-08-31 11:40:52 +02:00
commit 4715e8ef4e

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
} }