11 #ifndef _MC_CONTROL_H_ 12 #define _MC_CONTROL_H_ void mc_regulation_loop()
launch speed control or no regulation
U8 mc_control_speed(U8 speed_cmd)
use to control speed , speed regulation loop need parameter : Kp_speed, Ki_speed ,Kd_speed and K_speed_scal in config_motor.h need to call in Te ms
U8 mc_control_current(U8 cur_cmd)
use to control current , current regulation loop need parameter : Kp_cur, Ki_cur ,Kd_cur and K_cur_scal in config_motor.h need to call in Te ms
void mc_set_Open_Loop()
set type of regulation
void mc_set_Speed_Loop()
set type of regulation
void mc_set_Current_Loop()
set type of regulation
U8 mc_get_Duty_Cycle()
set type of regulation