Page 1 of 1

What controller is inside the quadcopters roll and pitch system?

Posted: Mon Nov 22, 2021 4:28 pm
by JamesClark
I have to model the roll pitch to control the x and y which is why I need to find out how the controlling works on roll and pitch.

I have found this GitHub code which states that it uses pi controller with kp=6 and ki=3. Is this correct?

Re: What controller is inside the quadcopters roll and pitch system?

Posted: Mon Nov 22, 2021 4:50 pm
by kimberly
Hi! By default it's a cascaded PID controller for the attitude and attitude rate.

Please check out the documentation to point you in the right direction: https://www.bitcraze.io/documentation/r ... ntrollers/

Re: What controller is inside the quadcopters roll and pitch system?

Posted: Tue Nov 23, 2021 6:05 am
by JamesClark
Hi thank you. I found the pid values for your own controller for moving xy plane.

I need the controller for moving a degree to another degree in roll for example.

SOrry I did not post the link but is this what In am referring : https://github.com/bitcraze/crazyflie-f ... face/pid.h
'

Re: What controller is inside the quadcopters roll and pitch system?

Posted: Wed Nov 24, 2021 2:56 am
by kimberly
Just follow the links in the documentation I send in the previous post. You should look for the attitude pid controller. This is the link of where you can find it: https://github.com/bitcraze/crazyflie-f ... ntroller.c