mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 01:52:06 +08:00
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:
+1
-1
Submodule panda updated: 187fdee385...997e328074
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user