Plannerd: higher upper bound cost for lateral planner (#28352)

20k not good upper bound for 10s
pull/28353/head
Harald Schäfer 2 years ago committed by GitHub
parent fc2bd16e72
commit cbd3e5b946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/controls/lib/lateral_planner.py

@ -112,7 +112,7 @@ class LateralPlanner:
self.last_cloudlog_t = t
cloudlog.warning("Lateral mpc - nan: True")
if self.lat_mpc.cost > 20000. or mpc_nans:
if self.lat_mpc.cost > 1e6 or mpc_nans:
self.solution_invalid_cnt += 1
else:
self.solution_invalid_cnt = 0

Loading…
Cancel
Save