Keep telemetry fixes off the advert timestamp and across full syncs
Writing the telemetry time into lastSeen sent the phone's clock back to the radio as the node's advert timestamp on the next path or flag write, which could later make the radio's record look newer and drop the fix. The fix now records its own telemetryFixAt and leaves lastSeen as the advert time; the map and lists show the later of the two as last heard. A full contact sync (pull to refresh, reconnect) cleared the list before the radio resent it, so fixes were lost even for an unchanged advert. They are now held for the sync and restored onto matching records.
This commit is contained in:
1 parent
979e1a7d2a
commit
dfc4cd54d8
7 files changed
+105
-52
No files matched your search
@@ -812,7 +812,8 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||||||
|
|
||||||
/// Applies a GPS fix from a telemetry reply to the contact so the map and
|
/// Applies a GPS fix from a telemetry reply to the contact so the map and
|
||||||
/// lists show where the node is now, not where its last advert put it.
|
/// lists show where the node is now, not where its last advert put it.
|
||||||
/// [_mergeRefreshedContact] keeps this fix until a newer advert arrives.
|
/// [lastSeen] is left alone: it is the node's advert timestamp, which path
|
||||||
|
/// and flag writes send back to the radio.
|
||||||
void updateContactLocationFromTelemetry(
|
void updateContactLocationFromTelemetry(
|
||||||
String contactKeyHex,
|
String contactKeyHex,
|
||||||
double latitude,
|
double latitude,
|
||||||
@@ -820,13 +821,10 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||||||
) {
|
) {
|
||||||
final index = _contacts.indexWhere((c) => c.publicKeyHex == contactKeyHex);
|
final index = _contacts.indexWhere((c) => c.publicKeyHex == contactKeyHex);
|
||||||
if (index < 0) return;
|
if (index < 0) return;
|
||||||
final existing = _contacts[index];
|
final updated = _contacts[index].copyWith(
|
||||||
final updated = existing.copyWith(
|
|
||||||
latitude: latitude,
|
latitude: latitude,
|
||||||
longitude: longitude,
|
longitude: longitude,
|
||||||
lastSeen: DateTime.now(),
|
telemetryFixAt: DateTime.now(),
|
||||||
telemetryFixAdvertSeen:
|
|
||||||
existing.telemetryFixAdvertSeen ?? existing.lastSeen,
|
|
||||||
);
|
);
|
||||||
if (!updated.hasLocation) return;
|
if (!updated.hasLocation) return;
|
||||||
_contacts[index] = updated;
|
_contacts[index] = updated;
|
||||||
@@ -834,10 +832,24 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||||||
unawaited(_persistContacts());
|
unawaited(_persistContacts());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Carries [previous]'s telemetry fix onto [incoming], a record the radio
|
||||||
|
/// just returned, while it still holds the advert that fix superseded. A
|
||||||
|
/// newer advert (by the node's own clock) wins.
|
||||||
|
Contact? _withTelemetryFix(Contact previous, Contact incoming) {
|
||||||
|
final fixAt = previous.telemetryFixAt;
|
||||||
|
if (fixAt == null || incoming.lastSeen.isAfter(previous.lastSeen)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return incoming.copyWith(
|
||||||
|
latitude: previous.latitude,
|
||||||
|
longitude: previous.longitude,
|
||||||
|
telemetryFixAt: fixAt,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/// Merges a contact record from the radio (contact list or advert) into the
|
/// Merges a contact record from the radio (contact list or advert) into the
|
||||||
/// one we already hold. The radio only knows the advert position, so a
|
/// one we already hold, keeping the user's path choice and any telemetry
|
||||||
/// telemetry fix stays until the node adverts again; timestamps are
|
/// fix still newer than the radio's advert.
|
||||||
/// compared only against the node's own advert clock.
|
|
||||||
Contact _mergeRefreshedContact(
|
Contact _mergeRefreshedContact(
|
||||||
Contact existing,
|
Contact existing,
|
||||||
Contact incoming, {
|
Contact incoming, {
|
||||||
@@ -847,21 +859,7 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||||||
existing.lastMessageAt.isAfter(incoming.lastMessageAt)
|
existing.lastMessageAt.isAfter(incoming.lastMessageAt)
|
||||||
? existing.lastMessageAt
|
? existing.lastMessageAt
|
||||||
: incoming.lastMessageAt;
|
: incoming.lastMessageAt;
|
||||||
final fixAdvertSeen = existing.telemetryFixAdvertSeen;
|
final base = incoming.copyWith(
|
||||||
final keepTelemetryFix =
|
|
||||||
fixAdvertSeen != null && !incoming.lastSeen.isAfter(fixAdvertSeen);
|
|
||||||
if (keepTelemetryFix) {
|
|
||||||
return incoming.copyWith(
|
|
||||||
lastMessageAt: mergedLastMessageAt,
|
|
||||||
pathOverride: existing.pathOverride, // Preserve user's path choice
|
|
||||||
pathOverrideBytes: existing.pathOverrideBytes,
|
|
||||||
latitude: existing.latitude,
|
|
||||||
longitude: existing.longitude,
|
|
||||||
lastSeen: existing.lastSeen,
|
|
||||||
telemetryFixAdvertSeen: fixAdvertSeen,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return incoming.copyWith(
|
|
||||||
lastMessageAt: mergedLastMessageAt,
|
lastMessageAt: mergedLastMessageAt,
|
||||||
pathOverride: existing.pathOverride, // Preserve user's path choice
|
pathOverride: existing.pathOverride, // Preserve user's path choice
|
||||||
pathOverrideBytes: existing.pathOverrideBytes,
|
pathOverrideBytes: existing.pathOverrideBytes,
|
||||||
@@ -873,6 +871,19 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||||||
: incoming.longitude,
|
: incoming.longitude,
|
||||||
clearTelemetryFix: true,
|
clearTelemetryFix: true,
|
||||||
);
|
);
|
||||||
|
return _withTelemetryFix(existing, base) ?? base;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Telemetry fixes held across a full contact sync, which clears the list
|
||||||
|
/// before the radio resends it.
|
||||||
|
final Map<String, Contact> _telemetryFixesDuringSync = {};
|
||||||
|
|
||||||
|
void _stashTelemetryFixes() {
|
||||||
|
for (final c in _contacts) {
|
||||||
|
if (c.telemetryFixAt != null) {
|
||||||
|
_telemetryFixesDuringSync[c.publicKeyHex] = c;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String _batteryChemistryForDevice() {
|
String _batteryChemistryForDevice() {
|
||||||
@@ -4291,6 +4302,7 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||||||
_contactSyncUsesSinceFilter = since != null;
|
_contactSyncUsesSinceFilter = since != null;
|
||||||
if (!preserveExisting) {
|
if (!preserveExisting) {
|
||||||
_hasLoadedContacts = false;
|
_hasLoadedContacts = false;
|
||||||
|
_stashTelemetryFixes();
|
||||||
_contacts.clear();
|
_contacts.clear();
|
||||||
}
|
}
|
||||||
_armContactSyncWatchdog();
|
_armContactSyncWatchdog();
|
||||||
@@ -6086,6 +6098,7 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||||||
case respCodeContactsStart:
|
case respCodeContactsStart:
|
||||||
debugPrint('Got CONTACTS_START');
|
debugPrint('Got CONTACTS_START');
|
||||||
if (!_preserveContactsOnRefresh) {
|
if (!_preserveContactsOnRefresh) {
|
||||||
|
_stashTelemetryFixes();
|
||||||
_contacts.clear();
|
_contacts.clear();
|
||||||
}
|
}
|
||||||
_isLoadingContacts = true;
|
_isLoadingContacts = true;
|
||||||
@@ -6161,6 +6174,7 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||||||
}
|
}
|
||||||
_hasLoadedContacts = true;
|
_hasLoadedContacts = true;
|
||||||
_preserveContactsOnRefresh = false;
|
_preserveContactsOnRefresh = false;
|
||||||
|
_telemetryFixesDuringSync.clear();
|
||||||
_contactSyncUsesSinceFilter = false;
|
_contactSyncUsesSinceFilter = false;
|
||||||
unawaited(updateKnownDiscovered());
|
unawaited(updateKnownDiscovered());
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
@@ -6945,7 +6959,12 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||||||
tag: 'Connector',
|
tag: 'Connector',
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
_contacts.add(contact);
|
// A full sync cleared the list; restore a telemetry fix it held.
|
||||||
|
final stashed = _telemetryFixesDuringSync.remove(contact.publicKeyHex);
|
||||||
|
_contacts.add(
|
||||||
|
(stashed == null ? null : _withTelemetryFix(stashed, contact)) ??
|
||||||
|
contact,
|
||||||
|
);
|
||||||
appLogger.info(
|
appLogger.info(
|
||||||
'Added new contact ${contact.name}: pathLen=${contact.pathLength}',
|
'Added new contact ${contact.name}: pathLen=${contact.pathLength}',
|
||||||
tag: 'Connector',
|
tag: 'Connector',
|
||||||
|
|||||||
+15
-9
@@ -22,11 +22,11 @@ class Contact {
|
|||||||
final bool isActive;
|
final bool isActive;
|
||||||
final Uint8List? rawPacket;
|
final Uint8List? rawPacket;
|
||||||
|
|
||||||
/// Set while [latitude]/[longitude]/[lastSeen] come from a telemetry reply
|
/// When [latitude]/[longitude] came from a telemetry reply rather than the
|
||||||
/// rather than an advert: the advert timestamp that fix superseded. A
|
/// advert, the phone time of that reply. [lastSeen] stays the node's advert
|
||||||
/// radio refresh carrying that same advert keeps the fix; a newer advert
|
/// timestamp (it is written back to the radio), so a radio refresh carrying
|
||||||
/// replaces it.
|
/// the same advert keeps the fix and a newer advert replaces it.
|
||||||
final DateTime? telemetryFixAdvertSeen;
|
final DateTime? telemetryFixAt;
|
||||||
|
|
||||||
Contact({
|
Contact({
|
||||||
required this.publicKey,
|
required this.publicKey,
|
||||||
@@ -45,7 +45,7 @@ class Contact {
|
|||||||
DateTime? lastMessageAt,
|
DateTime? lastMessageAt,
|
||||||
this.isActive = true,
|
this.isActive = true,
|
||||||
this.rawPacket,
|
this.rawPacket,
|
||||||
this.telemetryFixAdvertSeen,
|
this.telemetryFixAt,
|
||||||
}) : lastMessageAt = lastMessageAt ?? lastSeen;
|
}) : lastMessageAt = lastMessageAt ?? lastSeen;
|
||||||
|
|
||||||
/// Cached: it backs ==, hashCode and the per-frame contact lookups, and
|
/// Cached: it backs ==, hashCode and the per-frame contact lookups, and
|
||||||
@@ -92,6 +92,12 @@ class Contact {
|
|||||||
lon <= 180.0;
|
lon <= 180.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// The latest time we heard from the node: its advert or a telemetry fix.
|
||||||
|
DateTime get lastHeard {
|
||||||
|
final fixAt = telemetryFixAt;
|
||||||
|
return fixAt != null && fixAt.isAfter(lastSeen) ? fixAt : lastSeen;
|
||||||
|
}
|
||||||
|
|
||||||
bool get isFavorite => (flags & contactFlagFavorite) != 0;
|
bool get isFavorite => (flags & contactFlagFavorite) != 0;
|
||||||
|
|
||||||
Contact copyWith({
|
Contact copyWith({
|
||||||
@@ -112,7 +118,7 @@ class Contact {
|
|||||||
DateTime? lastModified,
|
DateTime? lastModified,
|
||||||
bool? isActive,
|
bool? isActive,
|
||||||
Uint8List? rawPacket,
|
Uint8List? rawPacket,
|
||||||
DateTime? telemetryFixAdvertSeen,
|
DateTime? telemetryFixAt,
|
||||||
bool clearTelemetryFix = false,
|
bool clearTelemetryFix = false,
|
||||||
}) {
|
}) {
|
||||||
return Contact(
|
return Contact(
|
||||||
@@ -136,9 +142,9 @@ class Contact {
|
|||||||
lastModified: lastModified ?? this.lastModified,
|
lastModified: lastModified ?? this.lastModified,
|
||||||
isActive: isActive ?? this.isActive,
|
isActive: isActive ?? this.isActive,
|
||||||
rawPacket: rawPacket ?? this.rawPacket,
|
rawPacket: rawPacket ?? this.rawPacket,
|
||||||
telemetryFixAdvertSeen: clearTelemetryFix
|
telemetryFixAt: clearTelemetryFix
|
||||||
? null
|
? null
|
||||||
: (telemetryFixAdvertSeen ?? this.telemetryFixAdvertSeen),
|
: (telemetryFixAt ?? this.telemetryFixAt),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
|||||||
: MapPalette.markerShadow.withValues(alpha: 0.18);
|
: MapPalette.markerShadow.withValues(alpha: 0.18);
|
||||||
|
|
||||||
_NodeAge _ageOf(Contact contact) {
|
_NodeAge _ageOf(Contact contact) {
|
||||||
final d = DateTime.now().difference(contact.lastSeen);
|
final d = DateTime.now().difference(contact.lastHeard);
|
||||||
if (d.inMinutes <= 60) return _NodeAge.online;
|
if (d.inMinutes <= 60) return _NodeAge.online;
|
||||||
if (d.inHours <= 24) return _NodeAge.recent;
|
if (d.inHours <= 24) return _NodeAge.recent;
|
||||||
return _NodeAge.stale;
|
return _NodeAge.stale;
|
||||||
@@ -543,7 +543,7 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
|||||||
final filteredByTime = settings.mapTimeFilterHours == 0
|
final filteredByTime = settings.mapTimeFilterHours == 0
|
||||||
? contacts
|
? contacts
|
||||||
: contacts.where((c) {
|
: contacts.where((c) {
|
||||||
final hoursSinceLastSeen = now.difference(c.lastSeen).inHours;
|
final hoursSinceLastSeen = now.difference(c.lastHeard).inHours;
|
||||||
return hoursSinceLastSeen <= settings.mapTimeFilterHours;
|
return hoursSinceLastSeen <= settings.mapTimeFilterHours;
|
||||||
}).toList();
|
}).toList();
|
||||||
|
|
||||||
@@ -2121,7 +2121,7 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
|||||||
if (a.hasLocation != b.hasLocation) {
|
if (a.hasLocation != b.hasLocation) {
|
||||||
return a.hasLocation ? -1 : 1;
|
return a.hasLocation ? -1 : 1;
|
||||||
}
|
}
|
||||||
return b.lastSeen.compareTo(a.lastSeen);
|
return b.lastHeard.compareTo(a.lastHeard);
|
||||||
});
|
});
|
||||||
final results = matches.take(8).toList();
|
final results = matches.take(8).toList();
|
||||||
return Container(
|
return Container(
|
||||||
@@ -2469,7 +2469,7 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
|||||||
children: [
|
children: [
|
||||||
_miniMeta(
|
_miniMeta(
|
||||||
context.l10n.map_lastSeen,
|
context.l10n.map_lastSeen,
|
||||||
formatNodeLastSeen(context.l10n, contact.lastSeen),
|
formatNodeLastSeen(context.l10n, contact.lastHeard),
|
||||||
),
|
),
|
||||||
_miniMeta(
|
_miniMeta(
|
||||||
context.l10n.map_path,
|
context.l10n.map_path,
|
||||||
@@ -4054,7 +4054,7 @@ int _mapContactSignature(Contact contact) {
|
|||||||
_bytesSignature(contact.pathOverrideBytes),
|
_bytesSignature(contact.pathOverrideBytes),
|
||||||
contact.latitude,
|
contact.latitude,
|
||||||
contact.longitude,
|
contact.longitude,
|
||||||
contact.lastSeen.millisecondsSinceEpoch,
|
contact.lastHeard.millisecondsSinceEpoch,
|
||||||
contact.lastMessageAt.millisecondsSinceEpoch,
|
contact.lastMessageAt.millisecondsSinceEpoch,
|
||||||
contact.isActive,
|
contact.isActive,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -92,8 +92,7 @@ class ContactStore {
|
|||||||
'rawPacket': contact.rawPacket != null
|
'rawPacket': contact.rawPacket != null
|
||||||
? base64Encode(contact.rawPacket!)
|
? base64Encode(contact.rawPacket!)
|
||||||
: null,
|
: null,
|
||||||
'telemetryFixAdvertSeen':
|
'telemetryFixAt': contact.telemetryFixAt?.millisecondsSinceEpoch,
|
||||||
contact.telemetryFixAdvertSeen?.millisecondsSinceEpoch,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,7 +100,7 @@ class ContactStore {
|
|||||||
final lastSeenMs = json['lastSeen'] as int? ?? 0;
|
final lastSeenMs = json['lastSeen'] as int? ?? 0;
|
||||||
final lastMessageMs = json['lastMessageAt'] as int?;
|
final lastMessageMs = json['lastMessageAt'] as int?;
|
||||||
final lastModifiedMs = json['lastModified'] as int?;
|
final lastModifiedMs = json['lastModified'] as int?;
|
||||||
final telemetryFixMs = json['telemetryFixAdvertSeen'] as int?;
|
final telemetryFixMs = json['telemetryFixAt'] as int?;
|
||||||
|
|
||||||
final rawPathLength = json['pathLength'] as int? ?? -1;
|
final rawPathLength = json['pathLength'] as int? ?? -1;
|
||||||
final rawPath = json['path'] != null
|
final rawPath = json['path'] != null
|
||||||
@@ -160,7 +159,7 @@ class ContactStore {
|
|||||||
rawPacket: json['rawPacket'] != null
|
rawPacket: json['rawPacket'] != null
|
||||||
? Uint8List.fromList(base64Decode(json['rawPacket'] as String))
|
? Uint8List.fromList(base64Decode(json['rawPacket'] as String))
|
||||||
: null,
|
: null,
|
||||||
telemetryFixAdvertSeen: telemetryFixMs == null
|
telemetryFixAt: telemetryFixMs == null
|
||||||
? null
|
? null
|
||||||
: DateTime.fromMillisecondsSinceEpoch(telemetryFixMs),
|
: DateTime.fromMillisecondsSinceEpoch(telemetryFixMs),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -41,12 +41,11 @@ IconData? contactTypeIcon(int type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// The most recent activity for [contact]: for chat nodes this includes the
|
/// The most recent activity for [contact]: for chat nodes this includes the
|
||||||
/// last message, for other node types only the last advert.
|
/// last message, for other node types only the last advert or telemetry fix.
|
||||||
DateTime resolveContactLastSeen(Contact contact) {
|
DateTime resolveContactLastSeen(Contact contact) {
|
||||||
if (contact.type != advTypeChat) return contact.lastSeen;
|
final heard = contact.lastHeard;
|
||||||
return contact.lastMessageAt.isAfter(contact.lastSeen)
|
if (contact.type != advTypeChat) return heard;
|
||||||
? contact.lastMessageAt
|
return contact.lastMessageAt.isAfter(heard) ? contact.lastMessageAt : heard;
|
||||||
: contact.lastSeen;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Short relative "last seen" label ("now", "5 mins ago", "2 days ago").
|
/// Short relative "last seen" label ("now", "5 mins ago", "2 days ago").
|
||||||
|
|||||||
@@ -262,7 +262,7 @@ void showNodeInfoSheet(
|
|||||||
),
|
),
|
||||||
NodeInfoRow(
|
NodeInfoRow(
|
||||||
label: l10n.map_lastSeen,
|
label: l10n.map_lastSeen,
|
||||||
value: formatNodeLastSeen(l10n, contact.lastSeen),
|
value: formatNodeLastSeen(l10n, contact.lastHeard),
|
||||||
),
|
),
|
||||||
NodeInfoRow(
|
NodeInfoRow(
|
||||||
label: l10n.map_publicKey,
|
label: l10n.map_publicKey,
|
||||||
|
|||||||
@@ -52,13 +52,43 @@ void main() {
|
|||||||
final fixed = connector.contacts.single;
|
final fixed = connector.contacts.single;
|
||||||
expect(fixed.latitude, 11.5);
|
expect(fixed.latitude, 11.5);
|
||||||
expect(fixed.longitude, 21.5);
|
expect(fixed.longitude, 21.5);
|
||||||
expect(fixed.lastSeen.isAfter(DateTime(2024)), isTrue);
|
// lastSeen stays the advert time the radio holds (path and flag writes
|
||||||
|
// send it back); the fix only moves lastHeard.
|
||||||
|
final advertTime = DateTime.fromMillisecondsSinceEpoch(1700000000 * 1000);
|
||||||
|
expect(fixed.lastSeen, advertTime);
|
||||||
|
expect(fixed.lastHeard.isAfter(advertTime), isTrue);
|
||||||
|
|
||||||
connector.handleFrameForTest(frame);
|
connector.handleFrameForTest(frame);
|
||||||
final refreshed = connector.contacts.single;
|
final refreshed = connector.contacts.single;
|
||||||
expect(refreshed.latitude, 11.5);
|
expect(refreshed.latitude, 11.5);
|
||||||
expect(refreshed.longitude, 21.5);
|
expect(refreshed.longitude, 21.5);
|
||||||
expect(refreshed.lastSeen, fixed.lastSeen);
|
expect(refreshed.lastSeen, advertTime);
|
||||||
|
expect(refreshed.telemetryFixAt, fixed.telemetryFixAt);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('telemetry fix survives a full contact sync', () {
|
||||||
|
final connector = MeshCoreConnector();
|
||||||
|
final frame = _contactFrame(
|
||||||
|
key,
|
||||||
|
advertTimestamp: 1700000000,
|
||||||
|
lat: 10,
|
||||||
|
lon: 20,
|
||||||
|
);
|
||||||
|
connector.handleFrameForTest(frame);
|
||||||
|
final keyHex = connector.contacts.single.publicKeyHex;
|
||||||
|
connector.updateContactLocationFromTelemetry(keyHex, 11.5, 21.5);
|
||||||
|
|
||||||
|
// A full sync clears the list on CONTACTS_START and the radio resends
|
||||||
|
// the same advert record.
|
||||||
|
connector.handleFrameForTest([respCodeContactsStart]);
|
||||||
|
expect(connector.contacts, isEmpty);
|
||||||
|
connector.handleFrameForTest(frame);
|
||||||
|
connector.handleFrameForTest([respCodeEndOfContacts]);
|
||||||
|
|
||||||
|
final contact = connector.contacts.single;
|
||||||
|
expect(contact.latitude, 11.5);
|
||||||
|
expect(contact.longitude, 21.5);
|
||||||
|
expect(contact.telemetryFixAt, isNotNull);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('a newer advert replaces the telemetry fix', () {
|
test('a newer advert replaces the telemetry fix', () {
|
||||||
@@ -75,7 +105,7 @@ void main() {
|
|||||||
final contact = connector.contacts.single;
|
final contact = connector.contacts.single;
|
||||||
expect(contact.latitude, 12);
|
expect(contact.latitude, 12);
|
||||||
expect(contact.longitude, 22);
|
expect(contact.longitude, 22);
|
||||||
expect(contact.telemetryFixAdvertSeen, isNull);
|
expect(contact.telemetryFixAt, isNull);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('telemetryGpsFix skips missing and null-island fixes', () {
|
test('telemetryGpsFix skips missing and null-island fixes', () {
|
||||||
|
|||||||
Reference in new issue
Block a user