« 少,就是更多 作者 陳鳳翔 2009.09.06 | Main | Video: Robot hand shows off amazing dexterity, speed »
機器上有裝三個加熱器 所以要用PID Control來控制
//Structure
struct PID { int Target; int Kp; int Ki; float Integral; int AdcCh;};
//Code E = (pid->Target) - ReadADC(pid->AdcCh); (pid->Integral) += E;
U = (pid->Kp) * E + (pid->Ki) * (pid->Integral);
//Kp = 70,Ki = 1
The comments to this entry are closed.
More...
Comments