diff --git a/src/data/fixedChannels.json b/src/data/fixedChannels.json index f55a347..c8940ef 100644 --- a/src/data/fixedChannels.json +++ b/src/data/fixedChannels.json @@ -240,6 +240,7 @@ }, { "name": "Marine", + "displayName": "Marine (US/Canada)", "description": "Marine VHF channels, US/Canada plan - duplex channels RX on the coast-station side", "defaultPower": "High", "defaultBandwidth": "25kHz", @@ -297,5 +298,61 @@ { "number": 50, "rx": 157.375, "tx": 157.375, "name": "M87" }, { "number": 51, "rx": 157.425, "tx": 157.425, "name": "M88", "notes": "Commercial intership" } ] + }, + { + "name": "Marine AU", + "displayName": "Marine (Australia)", + "description": "Marine VHF voice channels, Australian plan - duplex channels RX on the coast-station side; DSC, AIS and data channels left out", + "defaultPower": "High", + "defaultBandwidth": "25kHz", + "defaultMode": "Analog", + "frequencies": [ + { "number": 1, "rx": 160.65, "tx": 156.05, "name": "MVHF 01", "notes": "Public Correspondence; duplex, RX=coast side" }, + { "number": 2, "rx": 160.7, "tx": 156.1, "name": "MVHF 02", "notes": "Public Correspondence; duplex, RX=coast side" }, + { "number": 3, "rx": 160.75, "tx": 156.15, "name": "MVHF 03", "notes": "Public Correspondence; duplex, RX=coast side" }, + { "number": 4, "rx": 160.8, "tx": 156.2, "name": "MVHF 04", "notes": "Public Correspondence; duplex, RX=coast side" }, + { "number": 5, "rx": 160.85, "tx": 156.25, "name": "MVHF 05", "notes": "Public Correspondence; duplex, RX=coast side" }, + { "number": 6, "rx": 156.3, "tx": 156.3, "name": "MVHF 06", "notes": "Search and Rescue / Intership" }, + { "number": 7, "rx": 160.95, "tx": 156.35, "name": "MVHF 07", "notes": "Public Correspondence; duplex, RX=coast side" }, + { "number": 8, "rx": 156.4, "tx": 156.4, "name": "MVHF 08", "notes": "Port Operations and Commercial" }, + { "number": 9, "rx": 156.45, "tx": 156.45, "name": "MVHF 09", "notes": "Port Operations" }, + { "number": 10, "rx": 156.5, "tx": 156.5, "name": "MVHF 10", "notes": "Port Operations" }, + { "number": 11, "rx": 156.55, "tx": 156.55, "name": "MVHF 11", "notes": "Port Operations" }, + { "number": 12, "rx": 156.6, "tx": 156.6, "name": "MVHF 12", "notes": "Port Operations" }, + { "number": 13, "rx": 156.65, "tx": 156.65, "name": "MVHF 13", "notes": "Port Ops / Distress Urgency Safety" }, + { "number": 14, "rx": 156.7, "tx": 156.7, "name": "MVHF 14", "notes": "Port Operations" }, + { "number": 15, "rx": 156.75, "tx": 156.75, "name": "MVHF 15", "notes": "Commercial Operations" }, + { "number": 16, "rx": 156.8, "tx": 156.8, "name": "MVHF 16", "notes": "DISTRESS SAFETY CALLING" }, + { "number": 17, "rx": 156.85, "tx": 156.85, "name": "MVHF 17", "notes": "Commercial Operations" }, + { "number": 18, "rx": 161.5, "tx": 156.9, "name": "MVHF 18", "notes": "Port Operations; duplex, RX=coast side" }, + { "number": 19, "rx": 161.55, "tx": 156.95, "name": "MVHF 19", "notes": "Port Operations; duplex, RX=coast side" }, + { "number": 20, "rx": 161.6, "tx": 157, "name": "MVHF 20", "notes": "Port Operations; duplex, RX=coast side" }, + { "number": 21, "rx": 161.65, "tx": 157.05, "name": "MVHF 21", "notes": "Repeater (distress/urgency/safety/ship mvmt); duplex, RX=coast side" }, + { "number": 22, "rx": 161.7, "tx": 157.1, "name": "MVHF 22", "notes": "Repeater (distress/urgency/safety/ship mvmt); duplex, RX=coast side" }, + { "number": 23, "rx": 161.75, "tx": 157.15, "name": "MVHF 23", "notes": "Public Correspondence; duplex, RX=coast side" }, + { "number": 24, "rx": 160.625, "tx": 156.025, "name": "MVHF 60", "notes": "Public Correspondence; duplex, RX=coast side" }, + { "number": 25, "rx": 160.675, "tx": 156.075, "name": "MVHF 61", "notes": "Public Correspondence; duplex, RX=coast side" }, + { "number": 26, "rx": 160.725, "tx": 156.125, "name": "MVHF 62", "notes": "Public Correspondence; duplex, RX=coast side" }, + { "number": 27, "rx": 160.775, "tx": 156.175, "name": "MVHF 63", "notes": "Public Correspondence; duplex, RX=coast side" }, + { "number": 28, "rx": 160.825, "tx": 156.225, "name": "MVHF 64", "notes": "Port Operations; duplex, RX=coast side" }, + { "number": 29, "rx": 160.875, "tx": 156.275, "name": "MVHF 65", "notes": "Port Operations; duplex, RX=coast side" }, + { "number": 30, "rx": 160.925, "tx": 156.325, "name": "MVHF 66", "notes": "Public Correspondence; duplex, RX=coast side" }, + { "number": 31, "rx": 156.375, "tx": 156.375, "name": "MVHF 67", "notes": "Supplementary to Ch16 (Distress Urgency Safety)" }, + { "number": 32, "rx": 156.425, "tx": 156.425, "name": "MVHF 68", "notes": "Port Operations" }, + { "number": 33, "rx": 156.475, "tx": 156.475, "name": "MVHF 69", "notes": "Australian Navy (Restricted)" }, + { "number": 34, "rx": 156.575, "tx": 156.575, "name": "MVHF 71", "notes": "Professional Fishing" }, + { "number": 35, "rx": 156.625, "tx": 156.625, "name": "MVHF 72", "notes": "Port Ops Commercial Non-Commercial Prof Fishing" }, + { "number": 36, "rx": 156.675, "tx": 156.675, "name": "MVHF 73", "notes": "Non-commercial Operations" }, + { "number": 37, "rx": 156.725, "tx": 156.725, "name": "MVHF 74", "notes": "Commercial Operations" }, + { "number": 38, "rx": 156.875, "tx": 156.875, "name": "MVHF 77", "notes": "Professional Fishing Non-commercial" }, + { "number": 39, "rx": 161.525, "tx": 156.925, "name": "MVHF 78", "notes": "Commercial Operations; duplex, RX=coast side" }, + { "number": 40, "rx": 161.575, "tx": 156.975, "name": "MVHF 79", "notes": "Port Operations; duplex, RX=coast side" }, + { "number": 41, "rx": 161.625, "tx": 157.025, "name": "MVHF 80", "notes": "Repeater (distress/urgency/safety/ship mvmt); duplex, RX=coast side" }, + { "number": 42, "rx": 161.675, "tx": 157.075, "name": "MVHF 81", "notes": "Repeater + Public Correspondence; duplex, RX=coast side" }, + { "number": 43, "rx": 161.725, "tx": 157.125, "name": "MVHF 82", "notes": "Repeater (distress/urgency/safety/ship mvmt); duplex, RX=coast side" }, + { "number": 44, "rx": 161.775, "tx": 157.175, "name": "MVHF 83", "notes": "Public Correspondence; duplex, RX=coast side" }, + { "number": 45, "rx": 157.375, "tx": 157.375, "name": "MVHF 87", "notes": "Port Operations" }, + { "number": 46, "rx": 157.425, "tx": 157.425, "name": "MVHF 88", "notes": "Port Operations" } + ] } ] diff --git a/tests/unit/fixedChannels.test.ts b/tests/unit/fixedChannels.test.ts index cc24bdb..1f4a0d4 100644 --- a/tests/unit/fixedChannels.test.ts +++ b/tests/unit/fixedChannels.test.ts @@ -95,3 +95,62 @@ describe('getAvailableFixedChannelSets', () => { }); }); }); + +describe('Marine (Australia)', () => { + // The voice-only CHIRP list from Australian testers (#209, 2026-11-25), which + // the preset matches channel for channel. + const au = () => getChannelsForSet('Marine AU'); + const ch = (n: string) => au().find((c) => c.name === `MVHF ${n}`); + + it('has the 46 channels of the list', () => { + expect(au()).toHaveLength(46); + }); + + it('puts the repeaters on the ship side: listen on the coast frequency, transmit 4.6 MHz below', () => { + for (const [n, ship, coast] of [ + ['80', 157.025, 161.625], + ['21', 157.05, 161.65], + ['81', 157.075, 161.675], + ['22', 157.1, 161.7], + ['82', 157.125, 161.725], + ['19', 156.95, 161.55], + ] as const) { + const c = ch(n); + expect(c, n).toBeDefined(); + expect(c!.rxFrequency).toBeCloseTo(coast, 4); + expect(c!.txFrequency).toBeCloseTo(ship, 4); + } + }); + + it('keeps 16, 69, 87 and 88 simplex', () => { + for (const [n, f] of [['16', 156.8], ['69', 156.475], ['87', 157.375], ['88', 157.425]] as const) { + const c = ch(n); + expect(c, n).toBeDefined(); + expect(c!.rxFrequency).toBeCloseTo(f, 4); + expect(c!.txFrequency).toBeCloseTo(f, 4); + } + }); + + it('leaves out DSC, AIS, ASM and VDES, which carry data, not voice', () => { + const data = [156.525, 161.975, 162.025, 161.95, 162.0, 157.2, 157.225, 157.25, 157.275, 157.3, 157.325]; + for (const c of au()) { + for (const f of data) { + expect(Math.abs(c.txFrequency - f), `${c.name} transmits on ${f}`).toBeGreaterThan(1e-6); + } + } + }); + + it('keeps every duplex pair 4.6 MHz apart and every name 16 characters or fewer', () => { + for (const c of au()) { + const split = Math.round((c.rxFrequency - c.txFrequency) * 1000) / 1000; + expect([0, 4.6], c.name).toContain(split); + expect(c.name.length).toBeLessThanOrEqual(16); + } + }); + + it('tells the two marine presets apart in the picker', () => { + const sets = getAvailableFixedChannelSets(); + expect(sets.find((s) => s.name === 'Marine')?.displayName).toBe('Marine (US/Canada)'); + expect(sets.find((s) => s.name === 'Marine AU')?.displayName).toBe('Marine (Australia)'); + }); +});