what's wrong with this?

pull/31760/head
Shane Smiskol 1 year ago
parent 180b46b8e3
commit 1c0534d0a1
  1. 2
      cereal
  2. 2
      selfdrive/car/toyota/carcontroller.py

@ -1 +1 @@
Subproject commit c5c2a60f1aa796e7de464015349db3c336b79220 Subproject commit c166a18a56c03d467c77d7a1f704d7ea57641217

@ -144,7 +144,7 @@ class CarController(CarControllerBase):
if self.frame % 6 == 0: if self.frame % 6 == 0:
desired_distance = 4 - CC.hudControl.distanceLines # this is flipped desired_distance = 4 - CC.hudControl.distanceLines # this is flipped
if CS.pcm_follow_distance_values != desired_distance and CS.out.cruiseState.available: if CS.pcm_follow_distance_values != 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