torque.h 491 B

12345678910111213141516171819
  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 throttle_value;
  8. float thro_ration; //油门开度百分比
  9. float spd_filted;
  10. u32 count;
  11. }torque_manager_t;
  12. void torque_init(void);
  13. void torque_reset(void);
  14. void torque_get_idq(float torque, float rpm, DQ_t *dq_out);
  15. void throttle_process(u8 run_mode, float f_throttle);
  16. void request_torque(float thro_ration);
  17. #endif /*_TORQUE_LUT_H__ */