Skip to content

Commit

Permalink
Avoid to use deprecated functions in the example
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRomualdi committed Jan 10, 2022
1 parent 2b64795 commit de6af32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/src/MPCExample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ int main()
for (int i = 0; i < numberOfSteps; i++){

// solve the QP problem
if(!solver.solve()) return 1;
if(solver.solveProblem() != OsqpEigen::ErrorExitFlag::NoError) return 1;

// get the controller input
QPSolution = solver.getSolution();
Expand Down

0 comments on commit de6af32

Please sign in to comment.