Position/velocity PID controller

Discussions and questions about the Crazyflie Nano Quadcopter
Post Reply
yuhsiang
Beginner
Posts: 22
Joined: Wed Mar 03, 2021 11:53 am

Position/velocity PID controller

Post by yuhsiang »

Hi,

Please, could you explain how the position and velocity setpoint are converted to roll, pitch and thrust?

https://github.com/bitcraze/crazyflie-f ... pid.c#L248

Thank you.

Yu-Hsiang
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: Position/velocity PID controller

Post by kimberly »

It is the same exact principle as what I explained in your thread about acceleration. The velocity in x in nonlinearly correlated with the pitch and the velocity in y is nonlinearly correlated to the roll angles

Please checkout this page for the controller explanation: https://www.bitcraze.io/documentation/r ... ntrollers/
Post Reply