2025-11-12 10:32:45 +08:00
|
|
|
#ifndef __DFOC_H
|
|
|
|
|
#define __DFOC_H
|
|
|
|
|
|
|
|
|
|
void Motor_en(void);
|
|
|
|
|
float constrain(float amt, float low, float high);
|
|
|
|
|
void SetPwm(float Ua, float Ub, float Uc);
|
|
|
|
|
float normalizeAngle(float angle);
|
|
|
|
|
void SetPhaseVoltage(float Uq, float Ud, float angle_el);
|
|
|
|
|
void Check_Sensor(void);
|
|
|
|
|
void FOC_Init(float power);
|
|
|
|
|
float electricAngle(void);
|
|
|
|
|
float GetCommand(void);
|
|
|
|
|
void Set_Angle(float Target);
|
2025-11-13 15:16:24 +08:00
|
|
|
float velocityopenloop(float target);
|
2025-11-12 10:32:45 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|