thro_torque_unused.h 634 B

12345678910111213141516171819202122232425
  1. #ifndef _THRO_TORQUE_H__
  2. #define _THRO_TORQUE_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 torque_real;
  9. float torque_acc_;
  10. float thro_filted;
  11. float spd_filted;
  12. float throttle_opening;
  13. float throttle_opening_last;
  14. u8 gear;
  15. }thro_torque_t;
  16. void thro_torque_reset(void);
  17. void thro_torque_init(void);
  18. float thro_ration_to_voltage(float r);
  19. void thro_torque_process(u8 run_mode, float f_throttle);
  20. float get_user_request_torque(void);
  21. float thro_torque_gear_map(s16 rpm, u8 gear);
  22. float get_throttle_ration(float f_thro);
  23. #endif /* _THRO_TORQUE_H__ */