Skip to content

Commit

Permalink
long_mpc set qp_tol to 1e-3
Browse files Browse the repository at this point in the history
NOTE: 1e-2 was breaking selfdrive/controls/tests/test_following_distance.py for 0 m/s,
rest works fine though
  • Loading branch information
FreyJo committed Feb 22, 2022
1 parent ea6a0ff commit 5fbeca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/controls/lib/longitudinal_mpc_lib/long_mpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def gen_long_mpc_solver():
# More iterations take too much time and less lead to inaccurate convergence in
# some situations. Ideally we would run just 1 iteration to ensure fixed runtime.
ocp.solver_options.qp_solver_iter_max = 10
ocp.solver_options.qp_tol = 1e-2
ocp.solver_options.qp_tol = 1e-3

# set prediction horizon
ocp.solver_options.tf = Tf
Expand Down

0 comments on commit 5fbeca3

Please sign in to comment.