#ifndef _TORQUE_LUT_H__ #define _TORQUE_LUT_H__ #include "os/os_types.h" #include "foc/core/PMSM_FOC_Core.h" typedef struct { float thro_prev; float speed_prev; float torque_prev; float trq_start; float trq_accl; u32 timestamp; //ms float toruqe_curr_max; //当前转把对应的最大扭矩 float speed_curr_max; //当前转把对应的最大速度 bool accl; //加速或者减速 float accl_ref; u32 count; }torque_manager_t; void torque_init(void); void torque_reset(void); void torque_get_idq(float torque, float rpm, DQ_t *dq_out); void throttle_process(u8 run_mode, float f_throttle); #endif /*_TORQUE_LUT_H__ */