pwm uart gipo i2c

This commit is contained in:
2025-11-12 10:32:45 +08:00
parent cd01dcf51e
commit 8908bf2332
13 changed files with 440 additions and 1 deletions

19
3rd/dfoc.h Normal file
View File

@@ -0,0 +1,19 @@
#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);
#endif