mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-12-03 14:13:59 +08:00
long mpc uses both leadOne and leadTwo (#39525)
This commit is contained in:
committed by
rav4kumar
parent
d7f5c489e7
commit
c0a2a98e68
@@ -144,7 +144,7 @@ class LongitudinalPlanner(LongitudinalPlannerSP):
|
||||
longitudinalPlan.accels = self.a_desired_trajectory.tolist()
|
||||
longitudinalPlan.jerks = self.j_desired_trajectory.tolist()
|
||||
|
||||
longitudinalPlan.hasLead = sm['radarState'].leadOne.present
|
||||
longitudinalPlan.hasLead = sm['radarState'].leadOne.present or sm['radarState'].leadTwo.present
|
||||
longitudinalPlan.longitudinalPlanSource = self.mpc.source
|
||||
longitudinalPlan.fcw = self.fcw
|
||||
|
||||
|
||||
Reference in New Issue
Block a user