torque.h 538 B

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