Nissan: match panda standstill (#26301)

* move to openpilot

* draft

* support internal urls

* not used

* update seg list

* regen segment list

* regen seg list

* fix

* check both rear wheels

* revert chganges

* bump panda

* bump padna
old-commit-hash: 3160493c85cb132abf5acb5e4e22fc4a7c108ef1
This commit is contained in:
Shane Smiskol
2022-10-31 19:44:53 -07:00
committed by GitHub
parent 59a4ffbbae
commit 8d6ff49daa
2 changed files with 2 additions and 2 deletions
+1 -1
Submodule panda updated: 187fdee385...997e328074
+1 -1
View File
@@ -44,7 +44,7 @@ class CarState(CarStateBase):
ret.vEgoRaw = (ret.wheelSpeeds.fl + ret.wheelSpeeds.fr + ret.wheelSpeeds.rl + ret.wheelSpeeds.rr) / 4.
ret.vEgo, ret.aEgo = self.update_speed_kf(ret.vEgoRaw)
ret.standstill = ret.vEgoRaw < 0.01
ret.standstill = cp.vl["WHEEL_SPEEDS_REAR"]["WHEEL_SPEED_RL"] == 0.0 and cp.vl["WHEEL_SPEEDS_REAR"]["WHEEL_SPEED_RR"] == 0.0
if self.CP.carFingerprint == CAR.ALTIMA:
ret.cruiseState.enabled = bool(cp.vl["CRUISE_STATE"]["CRUISE_ENABLED"])