Add radios for the MB-339A.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2511.
This commit is contained in:
Dan Albert 2022-11-25 13:33:04 -08:00
parent 11632b0ef1
commit e208df16b2
2 changed files with 60 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import logging
import re
from dataclasses import dataclass
from typing import Dict, FrozenSet, Iterator, List, Set, Tuple
from dcs.task import Modulation
@ -246,6 +247,51 @@ RADIOS: List[Radio] = [
),
),
Radio("UHF TRAP 137B", (RadioRange(MHz(225), MHz(400), kHz(25), Modulation.AM),)),
Radio(
"AN/ARC-150(V) 2",
(
RadioRange(
MHz(225),
MHz(400),
MHz(1),
Modulation.AM,
frozenset((MHz(243),)),
),
),
),
Radio(
"SRT-651/N",
(
RadioRange(
MHz(30),
MHz(88),
MHz(1),
Modulation.FM,
frozenset((MHz(40, 500),)),
),
RadioRange(
MHz(108),
MHz(156),
MHz(1),
Modulation.AM,
frozenset((MHz(121, 500),)),
),
RadioRange(
MHz(156),
MHz(174),
MHz(1),
Modulation.FM,
frozenset((MHz(156, 800),)),
),
RadioRange(
MHz(225),
MHz(400),
MHz(1),
Modulation.AM, # Actually AM/FM, but we can't represent that.
frozenset((MHz(243),)),
),
),
),
]

View File

@ -6,3 +6,17 @@ role: Light Attack
max_range: 200
variants:
MB-339A: {}
radios:
intra_flight: SRT-651/N
inter_flight: AN/ARC-150(V) 2
channels:
# The common allocator is sufficient for Liberation's purposes. There are
# more than 20 channels available on COMM2 (manual says 100, ME says 30,
# presumably only 30 can be truly *pre* set, and the other 70 can be set in
# the cockpit). We never need that many though, so no sense customizing
# further.
type: common
# COMM1 us UHF only. COMM2 is V/UHF. We prefer allocating intra-flight on
# VHF because it's less contested, so intra-flight goes to COMM2.
intra_flight_radio_index: 2
inter_flight_radio_index: 1