mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 18:53:55 +08:00
Make longitudinal planning triggered on model (#22641)
* Make long planning triggered on model * fix process replay Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
This commit is contained in:
@@ -38,7 +38,6 @@ def plannerd_thread(sm=None, pm=None):
|
||||
if sm.updated['modelV2']:
|
||||
lateral_planner.update(sm, CP)
|
||||
lateral_planner.publish(sm, pm)
|
||||
if sm.updated['radarState']:
|
||||
longitudinal_planner.update(sm, CP)
|
||||
longitudinal_planner.publish(sm, pm)
|
||||
|
||||
|
||||
@@ -264,8 +264,8 @@ CONFIGS = [
|
||||
ProcessConfig(
|
||||
proc_name="plannerd",
|
||||
pub_sub={
|
||||
"modelV2": ["lateralPlan"], "radarState": ["longitudinalPlan"],
|
||||
"carState": [], "controlsState": [],
|
||||
"modelV2": ["lateralPlan", "longitudinalPlan"],
|
||||
"carState": [], "controlsState": [], "radarState": [],
|
||||
},
|
||||
ignore=["logMonoTime", "valid", "longitudinalPlan.processingDelay"],
|
||||
init_callback=get_car_params,
|
||||
|
||||
@@ -1 +1 @@
|
||||
6603859ec1a7a2d61c63693cff1765b0189c4746
|
||||
58674945e8c265e2c1f53500fc9cab2ed9a815b0
|
||||
Reference in New Issue
Block a user