Make longitudinal planning triggered on model (#22641)

* Make long planning triggered on model

* fix process replay

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
pull/22720/head
Robbe Derks 2021-10-28 12:27:09 +02:00 committed by GitHub
parent 21c4bfc7be
commit efb5abec41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

@ -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)

View File

@ -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,

View File

@ -1 +1 @@
6603859ec1a7a2d61c63693cff1765b0189c4746
58674945e8c265e2c1f53500fc9cab2ed9a815b0