long mpc uses both leadOne and leadTwo (#39525)

This commit is contained in:
Armand du Parc Locmaria
2026-11-30 16:07:35 -08:00
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