frameId in long/lat planner
parent
ccfb061870
commit
75adb2d076
|
@ -103,6 +103,7 @@ class LateralPlanner:
|
|||
plan_send.valid = sm.all_alive_and_valid(service_list=['carState', 'controlsState', 'modelV2'])
|
||||
|
||||
lateralPlan = plan_send.lateralPlan
|
||||
lateralPlan.frameId = sm['modelV2'].frameId
|
||||
lateralPlan.laneWidth = float(self.LP.lane_width)
|
||||
lateralPlan.dPathPoints = self.y_pts.tolist()
|
||||
lateralPlan.psis = self.lat_mpc.x_sol[0:CONTROL_N, 2].tolist()
|
||||
|
|
|
@ -116,6 +116,7 @@ class Planner:
|
|||
plan_send.valid = sm.all_alive_and_valid(service_list=['carState', 'controlsState'])
|
||||
|
||||
longitudinalPlan = plan_send.longitudinalPlan
|
||||
longitudinalPlan.frameId = sm['modelV2'].frameId
|
||||
longitudinalPlan.modelMonoTime = sm.logMonoTime['modelV2']
|
||||
longitudinalPlan.processingDelay = (plan_send.logMonoTime / 1e9) - sm.logMonoTime['modelV2']
|
||||
|
||||
|
|
Loading…
Reference in New Issue