PI_Controller.h 252 B

12345678910111213
  1. #ifndef _PI_CONTROLLER_H__
  2. #define _PI_CONTROLLER_H__
  3. typedef struct _pi {
  4. float Kp_gain;
  5. float Ki_gain;
  6. float limit_high_output;
  7. float limit_low_output;
  8. }PI_ctrl_t;
  9. float pi_control(PI_ctrl_t *pi, float error);
  10. #endif /* _PI_CONTROLLER_H__ */