mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 00:05:59 +08:00
Mazda: no steer unavailable alert for cars with full range steering (#23998)
* allow steer if minSteerSpeed is <= 0
* need to understand lkas_blocked, can we just use that?
need to understand lkas_blocked, can we just use that?
* Revert "need to understand lkas_blocked, can we just use that?"
This reverts commit 8793fb562d6ba41ce4fd8c8e8a974d639e98f79b.
* better
* fix
* little more clear
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 20085620db
This commit is contained in:
@@ -72,6 +72,8 @@ class CarState(CarStateBase):
|
||||
self.lkas_allowed_speed = True
|
||||
elif speed_kph < LKAS_LIMITS.DISABLE_SPEED:
|
||||
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
|
||||
# it should be used for carState.cruiseState.nonAdaptive instead
|
||||
|
||||
Reference in New Issue
Block a user