Add Q65 contact mode

This commit is contained in:
Graham McIntire 2026-04-11 17:21:33 -05:00
parent a37b4cb929
commit 4ca8c5d3bc
5 changed files with 5 additions and 5 deletions

View file

@ -58,7 +58,7 @@ defmodule Microwaveprop.Radio.Contact do
@submission_fields ~w(station1 station2 qso_timestamp mode band grid1 grid2 submitter_email user_id)a
@submission_required ~w(station1 station2 qso_timestamp mode band grid1 grid2)a
@allowed_modes ~w(CW SSB FM FT8 FT4)
@allowed_modes ~w(CW SSB FM FT8 FT4 Q65)
@allowed_bands Enum.map(~w(1296 2304 3456 5760 10000 24000 47000 68000 75000 122000 134000 241000), &Decimal.new/1)
def submission_changeset(contact, attrs) do

View file

@ -11,7 +11,7 @@ defmodule Microwaveprop.Radio.ContactEdit do
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
@allowed_modes ~w(CW SSB FM FT8 FT4)
@allowed_modes ~w(CW SSB FM FT8 FT4 Q65)
@allowed_bands ~w(1296 2304 3456 5760 10000 24000 47000 68000 75000 122000 134000 241000)
schema "contact_edits" do

View file

@ -23,7 +23,7 @@ defmodule MicrowavepropWeb.ContactLive.Show do
@enqueue_mask 13
@band_options BandConfig.band_options()
@mode_options ~w(CW SSB FM FT8 FT4)
@mode_options ~w(CW SSB FM FT8 FT4 Q65)
@impl true
def mount(%{"id" => id}, session, socket) do

View file

@ -11,7 +11,7 @@ defmodule MicrowavepropWeb.SubmitLive do
@band_options BandConfig.band_options()
@mode_options ~w(CW SSB FM FT8 FT4)
@mode_options ~w(CW SSB FM FT8 FT4 Q65)
@impl true
def mount(_params, _session, socket) do

View file

@ -59,7 +59,7 @@ defmodule Microwaveprop.Radio.ContactSubmissionTest do
end
test "accepts valid modes" do
for mode <- ~w(CW SSB FM FT8 FT4) do
for mode <- ~w(CW SSB FM FT8 FT4 Q65) do
attrs = Map.put(@valid_attrs, :mode, mode)
changeset = Contact.submission_changeset(%Contact{}, attrs)
assert changeset.valid?, "Expected mode #{mode} to be valid"