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

Controller tuning. #144

Open
HenryHuYu opened this issue Jul 28, 2020 · 3 comments
Open

Controller tuning. #144

HenryHuYu opened this issue Jul 28, 2020 · 3 comments
Labels
question Further information is requested

Comments

@HenryHuYu
Copy link

HenryHuYu commented Jul 28, 2020

Drone2020v1 2020-07-28 15-27-23.zip
Hi, I am trying to tune the controller in Airsim. For the video it is the same parameter as the original code. The video shows that the drone is kinda viberating when tracking a circle trajectory. To my understanding, it is because the Kp is too big or the attitude_tau is too small, but as I make them smaller or make one of them smaller, the drone is still viberating,.
Also, I design a polynomial trajectory for execute time T = 3, and at the time t = 3, v(t) = 0; a(t) = 0; For the current parameter, it will go back and forth around the final target position.
So do you have any advices on how to tune the parameter? and will it help if I use publist flat target witch contains (p, v, a)? currently I publish only p and v
I am new to tune the controller. really appreciated. Thanks for your help!

@Jaeyoung-Lim Jaeyoung-Lim added the question Further information is requested label Oct 12, 2020
@Jaeyoung-Lim
Copy link
Owner

@HenryHuYu Probably for tuning, it would be better if you just publish a stationary position setpoint and move it from there

Kp is a gain for the position controller and attitude_tau is the rate controller time constant.
If it still oscillates you need to probably make it bigger

@mzahana
Copy link
Contributor

mzahana commented Sep 13, 2021

@Jaeyoung-Lim I am also wondering what would be the best approach to tune this controller for real vehicles. How would you start with initial values based on a given vehicle specs?

@Jaeyoung-Lim
Copy link
Owner

Jaeyoung-Lim commented Sep 13, 2021

@mzahana My recommendation is that you creat a model that is as close as the real vehicle ( including px4 tuning gains) and tune this controller on top of that model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants