there's always a typo

pull/31760/head
Shane Smiskol 1 year ago
parent ef3d1dcb20
commit c905c2374e
  1. 2
      selfdrive/car/toyota/carcontroller.py

@ -144,7 +144,7 @@ class CarController(CarControllerBase):
if self.frame % 6 == 0: if self.frame % 6 == 0:
desired_distance = 4 - hud_control.distanceBars # this is flipped desired_distance = 4 - hud_control.distanceBars # this is flipped
if CS.pcm_follow_distance_values != desired_distance and CS.out.cruiseState.enabled: if CS.pcm_follow_distance != desired_distance and CS.out.cruiseState.enabled:
self.distance_button = not self.distance_button self.distance_button = not self.distance_button
else: else:
self.distance_button = 0 self.distance_button = 0

Loading…
Cancel
Save