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

The px4 shakes left and right when taking off. #24

Open
one-DS opened this issue Sep 27, 2021 · 9 comments
Open

The px4 shakes left and right when taking off. #24

one-DS opened this issue Sep 27, 2021 · 9 comments

Comments

@one-DS
Copy link

one-DS commented Sep 27, 2021

When applied to the physical aircraft, the UAV shakes left and right when taking off. How to adjust it? We look forward to your reply. Thank you!

@mzahana
Copy link
Owner

mzahana commented Sep 27, 2021

@one-DS you may need to tune the geometric controller.

@one-DS
Copy link
Author

one-DS commented Oct 1, 2021

@mzahana Hello, thank you for taking the time to reply to me. geometric_ The parameter range of the controller is 0.1 ~ 20. By adjusting the parameters, the UAV does not shake as much as before, but the parameters have been adjusted to the end, and the situation is still not ideal. Therefore, I want to ask you, is this method feasible by modifying the controller program to expand the parameter range and make a larger range adjustable? thank you!

@mzahana
Copy link
Owner

mzahana commented Oct 15, 2021

@one-DS you may change them in the launch file, here

@one-DS
Copy link
Author

one-DS commented Oct 15, 2021

@mzahana Thank you! The problem has been solved,but I want to know how these parameters control the attitude of UAV, like kpos and kvel. I don't know what these two mean at present.

@daishuaibi
Copy link

@one-DS Hello, I have met the same problem, may I ask how to set parameters? I have tried many times but it failed

@Goldsaints
Copy link

Goldsaints commented Jan 7, 2022 via email

@daishuaibi
Copy link

@Goldsaints Thank you very much for your reply. I would like to ask if this mavros_controllers is to replace the original file and run .setup.sh to reinstall,I tried but it didn't work,Is there something wrong with my procedure?

@ZhangXiaolei314
Copy link

@Goldsaints Thank you very much for your reply. I would like to ask if this mavros_controllers is to replace the original file and run .setup.sh to reinstall,I tried but it didn't work,Is there something wrong with my procedure?

you should change the file px4_fast_planner/launch/geometric_controller.launch like this
image
these three lines are necessary
image

@Dieptranivsr
Copy link

@ZhangXiaolei314 thank you, I had really wasted a long time

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

6 participants