Implement ranking system for direct repeaters based on SNR and recency; update related UI components to reflect changes

This commit is contained in:
Winston Lowe
2026-02-16 11:58:44 -08:00
parent 36401210ce
commit 42eb293d1c
4 changed files with 74 additions and 21 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ class _SNRIndicatorState extends State<SNRIndicator> {
Widget build(BuildContext context) {
final directRepeaters = widget.connector.directRepeaters;
final directBestRepeaters = List.of(directRepeaters)
..sort((a, b) => (b.snr).compareTo(a.snr));
..sort((a, b) => (b.ranking).compareTo(a.ranking));
final directRepeater = directBestRepeaters.isEmpty
? null
: directBestRepeaters.first;