Ford: fix counter in LateralMotionControl2 message (#28328)

This commit is contained in:
Cameron Clough
2023-05-27 21:54:37 -07:00
committed by GitHub
parent aa3490ac30
commit de5e0d0c71
+1 -1
View File
@@ -70,7 +70,7 @@ class CarController:
if self.CP.carFingerprint in CANFD_CARS:
# TODO: extended mode
mode = 1 if CC.latActive else 0
counter = self.frame // CarControllerParams.STEER_STEP
counter = (self.frame // CarControllerParams.STEER_STEP) % 0xF
can_sends.append(create_lat_ctl2_msg(self.packer, mode, 0., 0., -apply_curvature, 0., counter))
else:
can_sends.append(create_lat_ctl_msg(self.packer, CC.latActive, 0., 0., -apply_curvature, 0.))