STM32G4-DRV8301-FOC/FOC_Related/PID/pid.h
Michael Chemic 51ef1c0860 files upload
2024-07-22 13:55:29 +08:00

21 lines
265 B
C

#ifndef __PID_H_
#define __PID_H_
typedef struct
{
float Set;
float Actual;
float err;
float err_last;
float Kp, Ki, Kd;
float voltage;
float integral;
} pid;
void PID_init(void);
extern pid pid_angle;
extern pid pid_speed;
extern pid pid_current;
#endif