torque.h 468 B

123456789101112131415161718
  1. #ifndef _TORQUE_LUT_H__
  2. #define _TORQUE_LUT_H__
  3. #include "os/os_types.h"
  4. #include "foc/core/PMSM_FOC_Core.h"
  5. typedef struct {
  6. bool accl;
  7. float thro_ration; //油门开度百分比
  8. float spd_filted;
  9. u32 count;
  10. }torque_manager_t;
  11. void torque_init(void);
  12. void torque_reset(void);
  13. void torque_get_idq(float torque, float rpm, DQ_t *dq_out);
  14. void throttle_process(u8 run_mode, float f_throttle);
  15. void request_torque(float thro_ration);
  16. #endif /*_TORQUE_LUT_H__ */