Pid

Hi, I'm trying to set pid control for a drone . When I have the output value, I have just to add to the velocity of the motor (in the function motor.write(velocity+output) ) or I have to use output in a different way ? Thank you .

It is not that simple. There are plenty of tutorials on line describing how PID controllers work, so do your reading.

this tutorial may help it is similar to setting up PID for a drone

z