Hey guys
Im trying to tune my PID loop to make my robot balance but i dont know if im using the right terms for my robot?
Im implementing a contemporary filter for my Gyro(98%) and Acc(2%).
Is the following right?
output=(Kp*error)+(Ki*(error*dt))+(Kd*((error-prev_error)/dt))
error=robot angle --Balance point at 0deg
prev_error=--Previous error
dt=0.01 --10ms delay
thankyou