mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 21:14:01 +08:00
@@ -16,10 +16,11 @@ def plannerd_thread(sm=None, pm=None):
|
||||
cloudlog.info("plannerd is waiting for CarParams")
|
||||
params = Params()
|
||||
CP = car.CarParams.from_bytes(params.get("CarParams", block=True))
|
||||
use_lanelines = not params.get_bool('EndToEndToggle')
|
||||
wide_camera = (params.get('EnableWideCamera') == b'1') if TICI else False
|
||||
cloudlog.info("plannerd got CarParams: %s", CP.carName)
|
||||
|
||||
use_lanelines = not params.get_bool('EndToEndToggle')
|
||||
wide_camera = params.get_bool('EnableWideCamera') if TICI else False
|
||||
|
||||
longitudinal_planner = Planner(CP)
|
||||
lateral_planner = LateralPlanner(CP, use_lanelines=use_lanelines, wide_camera=wide_camera)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user