C语言实现pid算法(附完整源码)

pid结构体定义

struct pid
{
   
    
    
    // Controller gains
    float kP;
    float kI;
    float kD;
    // State variables
    float lastError;
    float integral;
}

猜你喜欢

转载自blog.csdn.net/it_xiangqiang/article/details/114118561