mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-08 22:42:05 +08:00
send initial calibration packet immediately
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user