Add package frequency & show package info on kneeboard

Resolves #71
This commit is contained in:
Raffson
2023-01-08 19:14:51 +01:00
parent cc9f61005b
commit 48e0d579cf
6 changed files with 62 additions and 13 deletions

View File

@@ -76,6 +76,9 @@ class CommonRadioChannelAllocator(RadioChannelAllocator):
for jtac in mission_data.jtacs:
flight.assign_channel(radio_id, next(channel_alloc), jtac.freq)
if (freq := flight.package.frequency) is not None:
flight.assign_channel(radio_id, next(channel_alloc), freq)
if flight.arrival != flight.departure and flight.arrival.atc is not None:
flight.assign_channel(radio_id, next(channel_alloc), flight.arrival.atc)