Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quadrotor model accepts negative control input affecting output moment #6

Closed
a6a3uh opened this issue Mar 11, 2022 · 1 comment
Closed

Comments

@a6a3uh
Copy link

a6a3uh commented Mar 11, 2022

M1 = km*w1;

Force calculation explicitly uses max(0, u[i]) to account only for positive control command.
Meanwhile moment calculation does not rejects negative control inputs.

Indeed optimal control calculated in https://github.com/RoboticExplorationLab/TrajectoryOptimization.jl/blob/master/examples/Quadrotor.ipynb calculates control with negative inputs found in each of 4 control channels which in turn affect dynamics. Either Quadrotor example should explicitly apply bounds on control or Quadrotor model should reject negative control inputs.

@a6a3uh
Copy link
Author

a6a3uh commented Mar 11, 2022

Sorry. Bound on control is defined in TrajectoryOptimization Quadrotor example. And Altro solver obeys these bounds, meanwhile iLQRSolver solver doesn't and produces solution with negative controls and error message MethodError: no method matching max_violation(::Altro.iLQRSolver... But this might be a subject for another issue.

@a6a3uh a6a3uh closed this as completed Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant