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:
parent
66a995b4d0
commit
4715e8ef4e
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue