Toyota: fix rare panda standstill mismatch (#31232)
* fix * clean up * just use 2x lower threshold so we're not on edge again old-commit-hash: bd1678e71f700126558dfa771544f90fa6d3e406
This commit is contained in:
@@ -71,7 +71,7 @@ class CarState(CarStateBase):
|
||||
ret.vEgo, ret.aEgo = self.update_speed_kf(ret.vEgoRaw)
|
||||
ret.vEgoCluster = ret.vEgo * 1.015 # minimum of all the cars
|
||||
|
||||
ret.standstill = ret.vEgoRaw == 0
|
||||
ret.standstill = abs(ret.vEgoRaw) < 1e-3
|
||||
|
||||
ret.steeringAngleDeg = cp.vl["STEER_ANGLE_SENSOR"]["STEER_ANGLE"] + cp.vl["STEER_ANGLE_SENSOR"]["STEER_FRACTION"]
|
||||
ret.steeringRateDeg = cp.vl["STEER_ANGLE_SENSOR"]["STEER_RATE"]
|
||||
|
||||
Reference in New Issue
Block a user