Show telemetry GPS fixes on the map and add a map location request

Telemetry replies carried a GPS fix that was only shown on the telemetry
screen, so the map kept the node at its last advert position. The fix now
updates the contact and survives radio contact refreshes until the node
adverts again (compared on the node's own advert clock). The map node card
gains an "Update location" button for companions and sensors; repeaters
and rooms only share GPS with logged-in admins, so they don't get it.
This commit is contained in:
zjs81 committed 2026-10-25 11:10:27 -07:00
1 parent d2eff6eb78
commit f0144ca959
44 files changed
+780 -19

No files matched your search

+6
View File
@@ -92,6 +92,8 @@ class ContactStore {
'rawPacket': contact.rawPacket != null
? base64Encode(contact.rawPacket!)
: null,
'telemetryFixAdvertSeen':
contact.telemetryFixAdvertSeen?.millisecondsSinceEpoch,
};
}
@@ -99,6 +101,7 @@ class ContactStore {
final lastSeenMs = json['lastSeen'] as int? ?? 0;
final lastMessageMs = json['lastMessageAt'] as int?;
final lastModifiedMs = json['lastModified'] as int?;
final telemetryFixMs = json['telemetryFixAdvertSeen'] as int?;
final rawPathLength = json['pathLength'] as int? ?? -1;
final rawPath = json['path'] != null
@@ -157,6 +160,9 @@ class ContactStore {
rawPacket: json['rawPacket'] != null
? Uint8List.fromList(base64Decode(json['rawPacket'] as String))
: null,
telemetryFixAdvertSeen: telemetryFixMs == null
? null
: DateTime.fromMillisecondsSinceEpoch(telemetryFixMs),
);
}
}