Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 7 months 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:
1 Answer
9 years, 4 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