Skip to content

Commit

Permalink
beesure: consider valid if enough satellites
Browse files Browse the repository at this point in the history
  • Loading branch information
crosser committed Aug 4, 2022
1 parent 4685264 commit 77c1912
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion loctrkd/beesure.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,10 @@ def in_decode(self, *args: str) -> None:
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,
Expand Down

0 comments on commit 77c1912

Please sign in to comment.