mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-02 12:02:09 +08:00
send initial calibration packet immediately
old-commit-hash: 74801bd216601df2ff38d853787139337a375c3c
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