From 218c3d3de773d3cb5b4734e81794e9e89b2bdcf0 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 13 Sep 2020 13:54:14 -0700 Subject: [PATCH] send initial calibration packet immediately old-commit-hash: 74801bd216601df2ff38d853787139337a375c3c --- selfdrive/locationd/calibrationd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/locationd/calibrationd.py b/selfdrive/locationd/calibrationd.py index 84ff2df4ca..3efffea053 100755 --- a/selfdrive/locationd/calibrationd.py +++ b/selfdrive/locationd/calibrationd.py @@ -149,7 +149,8 @@ def calibrationd_thread(sm=None, pm=None): calibrator = Calibrator(param_put=True) while 1: - sm.update(100) + timeout = 0 if sm.frame == -1 else 100 + sm.update(timeout) if sm.updated['cameraOdometry']: calibrator.handle_v_ego(sm['carState'].vEgo)