From 77c191290dad765c5b2e09c60d2b7e38aff87565 Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Fri, 5 Aug 2022 00:41:28 +0200 Subject: [PATCH] beesure: consider valid if enough satellites --- loctrkd/beesure.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/loctrkd/beesure.py b/loctrkd/beesure.py index 41b25e0..f5bf443 100755 --- a/loctrkd/beesure.py +++ b/loctrkd/beesure.py @@ -373,7 +373,10 @@ class _LOC_DATA(BeeSurePkt): self.longitude = p.lon * p.eorw def rectified(self) -> Report: - if self.gps_valid: + # self.gps_valid is supposed to mean it, but it does not. Perfectly + # good looking coordinates, with ten satellites, still get 'V'. + # I suspect that in reality, 'A' means "hint data is absent". + if self.gps_valid or self.num_of_sats > 3: return CoordReport( devtime=str(self.devtime), battery_percentage=self.battery_percentage, -- 2.43.0