mirror of
https://github.com/avem-labs/Avem.git
synced 2023-09-01 15:18:49 +08:00
[MOD]: PID
This commit is contained in:
parent
35b4898d93
commit
c34ebfd30a
@ -10,6 +10,15 @@ extern float g_Yaw, g_Pitch, g_Roll; //eular
|
||||
#define SUM_ERRO_MAX 900
|
||||
#define SUM_ERRO_MIN -900
|
||||
|
||||
typedef struct {
|
||||
float Cache;
|
||||
float Erro;
|
||||
float p;
|
||||
float i;
|
||||
float d;
|
||||
short output;
|
||||
} pid_st, *pid_pst;
|
||||
|
||||
void pid(float setPoint, float d);
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user