| 12345678910111213141516171819 |
- #ifndef _TORQUE_LUT_H__
- #define _TORQUE_LUT_H__
- #include "os/os_types.h"
- #include "foc/core/PMSM_FOC_Core.h"
- typedef struct {
- float throttle_prev;
- float speed_prev;
- float torque_prev;
- u32 timestamp; //ms
- float toruqe_curr_max; //当前转把对应的最大扭矩
- float speed_curr_max; //当前转把对应的最大速度
- u32 count;
- }torque_manager_t;
- void torque_init(void);
- void torque_get_idq(float torque, float rpm, DQ_t *dq_out);
- void torque_manager(u8 run_mode, float f_throttle);
- #endif /*_TORQUE_LUT_H__ */
|