mirror of
https://github.com/praktimarc/kst4contest.git
synced 2026-09-11 03:35:28 +02:00
Add 50/70 MHz band support (table, NOT-QRV, station setup, loggers)
Issue #68 Adds Band.B_50/B_70 and wires them through the same band-opportunity machinery as the other bands: X/a/B+/o table columns and filter button in the User table and the Workedstn database table, NOT-QRV checkboxes and propagation across callsign variants, "My station uses 6m/4m band" toggles, station-name detection ("50", "6M", "70MHZ", "4M" - without stealing the existing bare "70"/"6" cm-band shorthand), Win-Test sked band IDs (10/50MHz, 11/70MHz), and UCX-logger worked-band recognition. Persists worked50/70 and notQRV50/70 via an additive SQLite migration (same ensureColumnExists pattern as the earlier v1.1->v1.2 migration), verified against a real database file. ReachabilityService.resolveAutoBand() now also falls back to 50 MHz (then 70 MHz) for stations in the "50/70 MHz" chat category, mirroring the existing Microwave-category fallback to 23cm. Assisted by Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -303,6 +303,8 @@ public class ChatController implements ThreadStatusCallback, PstRotatorEventList
|
||||
private static String bandToHumanLabel(Band b) {
|
||||
if (b == null) return "?";
|
||||
return switch (b) {
|
||||
case B_50 -> "6m";
|
||||
case B_70 -> "4m";
|
||||
case B_144 -> "2m";
|
||||
case B_432 -> "70cm";
|
||||
case B_1296 -> "23cm";
|
||||
@@ -1318,6 +1320,8 @@ private ObservableList<String>
|
||||
continue;
|
||||
}
|
||||
|
||||
target.setQrv50(sourceMember.isQrv50());
|
||||
target.setQrv70(sourceMember.isQrv70());
|
||||
target.setQrv144(sourceMember.isQrv144());
|
||||
target.setQrv432(sourceMember.isQrv432());
|
||||
target.setQrv1240(sourceMember.isQrv1240());
|
||||
@@ -2922,6 +2926,8 @@ private ObservableList<String>
|
||||
activeChatMember.setWorked3400(storedChatMemberState.isWorked3400());
|
||||
activeChatMember.setWorked5600(storedChatMemberState.isWorked5600());
|
||||
activeChatMember.setWorked10G(storedChatMemberState.isWorked10G());
|
||||
activeChatMember.setWorked50(storedChatMemberState.isWorked50());
|
||||
activeChatMember.setWorked70(storedChatMemberState.isWorked70());
|
||||
activeChatMember.setQrv144(storedChatMemberState.isQrv144());
|
||||
activeChatMember.setQrv432(storedChatMemberState.isQrv432());
|
||||
activeChatMember.setQrv1240(storedChatMemberState.isQrv1240());
|
||||
@@ -2929,6 +2935,8 @@ private ObservableList<String>
|
||||
activeChatMember.setQrv3400(storedChatMemberState.isQrv3400());
|
||||
activeChatMember.setQrv5600(storedChatMemberState.isQrv5600());
|
||||
activeChatMember.setQrv10G(storedChatMemberState.isQrv10G());
|
||||
activeChatMember.setQrv50(storedChatMemberState.isQrv50());
|
||||
activeChatMember.setQrv70(storedChatMemberState.isQrv70());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user