Report
4 years, 1 month ago.

Setting up

Can you explain the difference between RateKp and Angle Kp in your code?

I have a lot of difficulties to stabilize my quadcopter.

Do you have an example, how you did set up the pid?

Thanks!

Question relating to:

a Nested PID control loop used for multirotor control.
Comment on this question

1 Answer

3 years, 10 months ago.

Hello Dominik,

sorry for the late response, i haven't been active here for a while.

regarding your question Angle Kp is the constant for translating the angle into rate (deg/s). Rate Kp is the proportional constant for the outer PID loop.

To help you understand this, this is a nested pid loop with the inner part depending on the angle output from the IMU and the outer part is depending on the rotation speed (deg/s). the setpoint of the outer PID is the output of the inner P = (angleError*angleKp).

i got this PID from diydrones blog but i can't locate the link unfortunately.

you could also look at my AQuad code. i got my quad to a stable state here is the video :

https://www.youtube.com/watch?v=5s9hnc0ez0A


To post an answer, please log in.