|
|
@ -72,6 +72,8 @@ class CarState(CarStateBase): |
|
|
|
self.lkas_allowed_speed = True |
|
|
|
self.lkas_allowed_speed = True |
|
|
|
elif speed_kph < LKAS_LIMITS.DISABLE_SPEED: |
|
|
|
elif speed_kph < LKAS_LIMITS.DISABLE_SPEED: |
|
|
|
self.lkas_allowed_speed = False |
|
|
|
self.lkas_allowed_speed = False |
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
self.lkas_allowed_speed = True |
|
|
|
|
|
|
|
|
|
|
|
# TODO: the signal used for available seems to be the adaptive cruise signal, instead of the main on |
|
|
|
# TODO: the signal used for available seems to be the adaptive cruise signal, instead of the main on |
|
|
|
# it should be used for carState.cruiseState.nonAdaptive instead |
|
|
|
# it should be used for carState.cruiseState.nonAdaptive instead |
|
|
|