Write LOCATION to Cabrillo, and give CQ WW M/2 eight band changes an hour

CQ WW lists LOCATION as required, and the export never wrote it. It now
carries the ARRL section, state or province, or DX.

CQ WW M/2 has no stay on a band: it may make eight band changes in a clock
hour. It was getting the ten-minute stay that M/S has.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-23 14:18:42 +00:00
co-authored by Claude Sonnet 5.5
parent b5043506ae
commit 0ad894bfae
6 changed files with 44 additions and 0 deletions
@@ -122,6 +122,7 @@ public sealed partial class EntryWindow
TransmitterCategory = Logging.Instance.TransmitterCategory,
OverlayCategory = Logging.Instance.OverlayCategory,
TimeCategory = Logging.Instance.TimeCategory,
Location = CabrilloLocation(Logging.Me),
ClaimedScore = Logging.Log.TotalScore,
Club = Logging.Me.Club,
Name = Logging.Me.Name,
@@ -132,6 +133,20 @@ public sealed partial class EntryWindow
Status($"{Logging.Log.Qsos.Count} contacts written to {Path.GetFileName(path)}");
}
/// The section, state or province for a station in the US or Canada, and
/// `DX` for any other station.
private static string CabrilloLocation(StationInfo me)
{
foreach (string place in new[] { me.ArrlSection, me.State, me.Province })
{
if (place.Trim().Length > 0)
{
return place.Trim().ToUpperInvariant();
}
}
return "DX";
}
/// The contacts alone, which is the file to hand to another program. ADIF
/// has no QTC record, and N1MM leaves the traffic out for that reason.
private void OnExportAdif(object? sender, RoutedEventArgs e) =>