feat(DengFOC): 新增了基于三相电流采样的dq轴电流计算函数`cal_Iq_Id` 调整了开环控制中的电压限制逻辑 更新了默认电源电压值为24V。 KHT7823测试代码 ```
17 lines
271 B
C
17 lines
271 B
C
#ifndef _5012B_H
|
|
#define _5012B_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#include "gd32c10x_eval.h"
|
|
#include "stdio.h"
|
|
|
|
void KHT7823_init(void);
|
|
u16 spi_rw_half_word(u32 spi_periph, const u16 i_HalfWord);
|
|
void KHT7823_readAngle(void);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|