diff --git a/opendbc_repo b/opendbc_repo index 36aa3b4eb3..33cd00d3df 160000 --- a/opendbc_repo +++ b/opendbc_repo @@ -1 +1 @@ -Subproject commit 36aa3b4eb3d025cf76e6ed59d93e62a97e847f61 +Subproject commit 33cd00d3df832822b40bd9b6cac6a7a15cf5eeb4 diff --git a/selfdrive/debug/max_lat_accel.py b/selfdrive/debug/max_lat_accel.py index 80ac2803fd..b6e5de606e 100755 --- a/selfdrive/debug/max_lat_accel.py +++ b/selfdrive/debug/max_lat_accel.py @@ -52,7 +52,7 @@ def find_events(lr: LogReader, qlog: bool = False) -> list[Event]: elif msg.which() == 'carOutput': # if we test with driver torque safety, max torque can be slightly noisy CO = msg.carOutput - requesting_max = requesting_max + 1 if abs(CO.actuatorsOutput.torque) > 0.6 else 0 + requesting_max = requesting_max + 1 if abs(CO.actuatorsOutput.torque) > 0.99 else 0 elif msg.which() == 'carState': steering_unpressed = steering_unpressed + 1 if not msg.carState.steeringPressed else 0 @@ -69,6 +69,7 @@ def find_events(lr: LogReader, qlog: bool = False) -> list[Event]: requesting_max = 0 factor = 1 / abs(CO.actuatorsOutput.torque) + factor *= np.interp(v_ego, [9, 17], [1.4, 1]) # TODO: would we extrapolate on curvature or post roll compensated lateral accel? current_lateral_accel = (curvature * v_ego ** 2 - roll * EARTH_G) * factor