thrimshim: Fix typo in odo extrapolation

pull/361/head
Mike Lang 1 year ago
parent f0e2aae519
commit 834dc55b41

@ -563,7 +563,7 @@ def get_odometer(channel):
elif extrapolate: elif extrapolate:
# Current extrapolate strategy is very simple: presume we're going at full speed (45mph). # Current extrapolate strategy is very simple: presume we're going at full speed (45mph).
SPEED = 45. / 3600 # in miles per second SPEED = 45. / 3600 # in miles per second
delta_t = time - timestamp delta_t = time - result.timestamp
delta_odo = delta_t * SPEED delta_odo = delta_t * SPEED
odometer = result.odometer + delta_odo odometer = result.odometer + delta_odo
else: else:

Loading…
Cancel
Save