This commit is contained in:
cqc
2026-01-04 11:35:19 +01:00
parent 950661ea50
commit 6fd5d742dd

View File

@ -123,9 +123,11 @@ def update_display():
b = bearing(lavg, (val[0][0],val[0][1])) b = bearing(lavg, (val[0][0],val[0][1]))
else: else:
d = float('inf') d = float('inf')
b = float('NaN') b = math.nan
print(name, ":", d, b) print(name, ":", d, b)
display.text(f"{name}: {d:.0f}m {b:.0f}°", 0, 10*(i+1), 1) du = "m" if math.isinf(d) else ""
bu = "°" if math.isnan(b) else ""
display.text(f"{name}: {d:.0f}{du} {b:.0f}{bu}", 0, 10*(i+1), 1)
display.show() display.show()