Skip to content

Commit

Permalink
Improve status screen
Browse files Browse the repository at this point in the history
  • Loading branch information
mrosseel committed Jan 28, 2025
1 parent af0dd47 commit de2f727
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions python/PiFinder/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ class Location:
altitude: float = 0.0
source: str = "None"
lock: bool = False
error_in_m: float = 0.0
timezone: Optional[str] = None
last_gps_lock: Optional[str] = None

Expand Down
17 changes: 16 additions & 1 deletion python/PiFinder/ui/gpsstatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def update(self, force=False):
# Status message
self.draw.text(
(0, draw_pos),
"keep open for faster lock",
"Stay here for lock",
font=self.fonts.base.font,
fill=self.colors.get(128),
)
Expand Down Expand Up @@ -101,4 +101,19 @@ def update(self, force=False):
)
draw_pos += 10

self.draw.text(
(0, draw_pos),
f"alt: {location.alt:.1f} m",
font=self.fonts.base.font,
fill=self.colors.get(128),
)
draw_pos += 10

self.draw.text(
(0, draw_pos),
f"source: {location.source:.1f} m",
font=self.fonts.base.font,
fill=self.colors.get(128),
)
draw_pos += 10
return self.screen_update()

0 comments on commit de2f727

Please sign in to comment.