New answers tagged

0

You're defining def pid_controller (kp,ki,kd,dt,error) ... the error is your e. The alternative would be to define def pid_controller (kp,ki,kd,dt,theta_reference,theta_feedback) and have error = theta_reference - theta_feedback e = error


Top 50 recent answers are included