mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-23 14:22:06 +08:00
ehh no, 50 ft increments is better
This commit is contained in:
@@ -29,10 +29,8 @@ class EventBuilder:
|
||||
else:
|
||||
dist = f'{m.distance / NAV_CV.METERS_TO_MILE:.1f} mi,'
|
||||
if m.distance < NAV_CV.POINT_ONE_MILE:
|
||||
if m.distance * NAV_CV.METERS_TO_FEET < 250.0:
|
||||
dist = f'{round((m.distance * NAV_CV.METERS_TO_FEET) / 50) * 50}ft,'
|
||||
else:
|
||||
dist = f'{round((m.distance * NAV_CV.METERS_TO_FEET) / 100) * 100}ft,'
|
||||
dist = f'{round((m.distance * NAV_CV.METERS_TO_FEET) / 50) * 50}ft,'
|
||||
|
||||
|
||||
if m.type == 'arrive' or m.type == 'depart':
|
||||
base_msg = banner
|
||||
|
||||
Reference in New Issue
Block a user