1 Star 10 Fork 10

GuanGuan / 无感浮点FOC开源库

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
FocControl.h 532 Bytes
一键复制 编辑 原始数据 按行查看 历史
GuanGuan 提交于 2023-06-21 07:45 . V1.0.0
#ifndef _FOCCONTROL_H
#define _FOCCONTROL_H
#define FOC_STATE_IDLE 0
#define FOC_STATE_ALIGN 1
#define FOC_STATE_STARTUP 2
#define FOC_STATE_RUN 3
#define FOC_STATE_STOP 4
typedef struct
{
int machineState;
int sw;
float target;
float openVoltageTheta;
float alginID; //ʱD
char isEnterSpeedLoop;
}control_t;
void ControlInit(void);
void FocMain(void);
void BspInit(void);
void PwmStop(void);
void PwmStart(void);
void DoControl(control_t *pHandle);
#endif
C
1
https://gitee.com/guanmingweiabc/foc_float.git
git@gitee.com:guanmingweiabc/foc_float.git
guanmingweiabc
foc_float
无感浮点FOC开源库
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891