| 12345678910111213141516171819202122232425 |
- #ifndef _MOTOR_H__
- #define _MOTOR_H__
- #include "os/os_types.h"
- #include "foc/core/PMSM_FOC_Core.h"
- typedef struct {
- bool b_start;
- float throttle;
- bool b_ignor_throttle;
- s16 s_testAngle;
- s32 s_targetFix;
- }motor_t;
- void mc_init(void);
- bool mc_start(u8 mode);
- bool mc_stop(void);
- void mc_hall_calibrate(s16 vd);
- bool mc_throttle_released(void);
- bool mc_lock_motor(bool lock);
- void mc_set_spd_torque(s32 target);
- void mc_use_throttle(void);
- #endif /* _MOTOR_H__ */
|