oops it's doing it twice

This commit is contained in:
Jason Wen
2024-07-22 16:33:25 -04:00
parent 5e3cf24afe
commit 8191c951c7
+2 -2
View File
@@ -284,8 +284,8 @@ class CarController(CarControllerBase):
self.last_button_frame = self.frame
elif self.frame % 2 == 0:
can_sends.extend([hyundaican.create_clu11(self.packer, (self.frame // 2) + 1, CS.clu11, self.cruise_button, self.CP)] * 25)
else:
self.make_jerk(CS, accel, actuators)
#else:
# self.make_jerk(CS, accel, actuators)
# Parse lead distance from radarState and display the corresponding distance in the car's cluster
if self.CP.openpilotLongitudinalControl and self.sm.updated['radarState'] and self.frame % 5 == 0: