From 834dc55b414481ddcd3b53deaa22d4a3849fe619 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Mon, 13 Nov 2023 10:51:19 +1100 Subject: [PATCH] thrimshim: Fix typo in odo extrapolation --- thrimshim/thrimshim/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thrimshim/thrimshim/main.py b/thrimshim/thrimshim/main.py index f7f05a0..2dbb273 100644 --- a/thrimshim/thrimshim/main.py +++ b/thrimshim/thrimshim/main.py @@ -563,7 +563,7 @@ def get_odometer(channel): elif extrapolate: # Current extrapolate strategy is very simple: presume we're going at full speed (45mph). SPEED = 45. / 3600 # in miles per second - delta_t = time - timestamp + delta_t = time - result.timestamp delta_odo = delta_t * SPEED odometer = result.odometer + delta_odo else: