From 5cfd6c86f3cd6c50a0607ad8b9e0b1e9ff1bbec8 Mon Sep 17 00:00:00 2001 From: Druss99 <42724070+Druss99@users.noreply.github.com> Date: Sat, 4 Oct 2025 13:48:11 -0400 Subject: [PATCH] add radios for MiG-29 Fulcrum (#581) --- game/radio/radios.py | 18 ++++++++++++++++++ resources/units/aircraft/MiG-29 Fulcrum.yaml | 3 +++ 2 files changed, 21 insertions(+) diff --git a/game/radio/radios.py b/game/radio/radios.py index daf893c7..e30657de 100644 --- a/game/radio/radios.py +++ b/game/radio/radios.py @@ -84,6 +84,10 @@ def kHz( return RadioFrequency(num * 1000 + hz, modulation) +def Hz(num: int, hz: int = 0, modulation: Modulation = Modulation.AM) -> RadioFrequency: + return RadioFrequency(num + hz, modulation) + + @dataclass(frozen=True) class RadioRange: """Defines the minimum (inclusive) and maximum (exclusive) range of the radio.""" @@ -352,6 +356,20 @@ RADIOS: List[Radio] = [ "AN/ARC-27", (RadioRange(MHz(225), MHz(400), kHz(100), Modulation.AM),), ), + # MiG-29 Fulcrum A + Radio( + "R-862", + ( + RadioRange(MHz(220), MHz(400), kHz(25), Modulation.AM), + RadioRange(MHz(100), MHz(150), kHz(25), Modulation.AM), + RadioRange(MHz(220), MHz(400), kHz(25), Modulation.FM), + RadioRange(MHz(100), MHz(150), kHz(25), Modulation.FM), + ), + ), + Radio( + "ARK-19", + (RadioRange(kHz(150), kHz(1300), Hz(500), Modulation.AM),), + ), ] diff --git a/resources/units/aircraft/MiG-29 Fulcrum.yaml b/resources/units/aircraft/MiG-29 Fulcrum.yaml index 90a80153..958030c7 100644 --- a/resources/units/aircraft/MiG-29 Fulcrum.yaml +++ b/resources/units/aircraft/MiG-29 Fulcrum.yaml @@ -30,6 +30,9 @@ variants: MIG-29-FULCRUM: display_name: MiG-29A Fulcrum kneeboard_units: "metric" +radios: + intra_flight: R-862 + inter_flight: R-862 tasks: BAI: 530 BARCAP: 370