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

How to tune the PID parameter? #8

Open
YUJX19 opened this issue Mar 16, 2022 · 3 comments
Open

How to tune the PID parameter? #8

YUJX19 opened this issue Mar 16, 2022 · 3 comments

Comments

@YUJX19
Copy link

YUJX19 commented Mar 16, 2022

How to adjust the PID parameter of the multirotor? I only get the drone's trajectory but can't control it smoothly. BTW, could you mind pointing me how to determine the value of the map/x_size of MAP?

@Leon-Redfield
Copy link

Hi! For the first problem, the PID parameters of the drone is at :
> src/Ctrl/config/ctrl_param_fpv.yaml
For the second problem, the map size is fixed after the Airsim map has been constructed, I advise not changing this parameter or the planner may not work, unless you utilize this planner in another brand new scene.

@YUJX19
Copy link
Author

YUJX19 commented Mar 16, 2022

Hi! For the first problem, the PID parameters of the drone is at : > src/Ctrl/config/ctrl_param_fpv.yaml For the second problem, the map size is fixed after the Airsim map has been constructed, I advise not changing this parameter or the planner may not work, unless you utilize this planner in another brand new scene.

Thank you very much for pointing out the PID configuration file directly, which saved me a lot of time~ 😀

One more question, how to calculate the value of the map/x_size of MAP provided in the repo?
I created a simple Airsim map in UE4 and packaged it as an application. Still, I couldn't calculate the map size and didn't find the relevant map data directly in the configuration.

@Leon-Redfield
Copy link

Leon-Redfield commented Mar 17, 2022

Hi! For the first problem, the PID parameters of the drone is at : > src/Ctrl/config/ctrl_param_fpv.yaml For the second problem, the map size is fixed after the Airsim map has been constructed, I advise not changing this parameter or the planner may not work, unless you utilize this planner in another brand new scene.

Thank you very much for pointing out the PID configuration file directly, which saved me a lot of time~ grinning

One more question, how to calculate the value of the map/x_size of MAP provided in the repo? I created a simple Airsim map in UE4 and packaged it as an application. Still, I couldn't calculate the map size and didn't find the relevant map data directly in the configuration.

Adjustment of the map size is in this file:

src/plan_manage/launch/zhangjiajie.launch map/x_size

The total map is a cube, from left to right is the x_size, from back to front is the y_size, and from down to up is the z_size. Therefore, how to choose the map size all depends on how large your new map is. Generally, we adjust the map size much bigger than the scene size.
Also, you can make your scene and the total map shown on Rviz to see whether all the obstacles are included in the total map and adjust the map size until above is satisfied.

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

2 participants