mirror of
https://github.com/markqvist/Sideband.git
synced 2026-12-02 21:00:05 -05:00
Added vertical distance
This commit is contained in:
parent
10d7e18264
commit
e59e087475
3 changed files with 20 additions and 2 deletions
|
|
@ -281,6 +281,17 @@ class RVDetails(MDRecycleView):
|
|||
if ed != None:
|
||||
ed_text = f"Euclidian distance [b]{RNS.prettydistance(ed)}[/b]"
|
||||
extra_entries.append({"icon": "axis-arrow", "text": ed_text})
|
||||
|
||||
if "vertical" in s["distance"]:
|
||||
vd = s["distance"]["vertical"]
|
||||
if vd != None:
|
||||
if vd < 0:
|
||||
relstr = "lower"
|
||||
vd = abs(vd)
|
||||
else:
|
||||
relstr = "greater"
|
||||
vd_text = f"Altitude is [b]{RNS.prettydistance(vd)}[/b] {relstr} than this device"
|
||||
extra_entries.append({"icon": "altimeter", "text": vd_text})
|
||||
|
||||
if "angle_to_horizon" in s["values"]:
|
||||
oath = s["values"]["angle_to_horizon"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue