| BLDC control on ATAVRMC303 with ATxMega128A1

mc_control.h
Go to the documentation of this file.
1
11 #ifndef _MC_CONTROL_H_
12 #define _MC_CONTROL_H_
13
14 U8 mc_control_speed(U8 speed_cmd);
15 U8 mc_control_current(U8 cur_cmd);
16
17 void mc_regulation_loop();
18
19 void mc_set_Open_Loop();
20 void mc_set_Speed_Loop();
21 void mc_set_Current_Loop();
22
23 U8 mc_get_Duty_Cycle();
24
25 #endif
mc_regulation_loop
void mc_regulation_loop()
launch speed control or no regulation
Definition: mc_control.c:159
mc_control_speed
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
Definition: mc_control.c:48
mc_control_current
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
Definition: mc_control.c:103
mc_set_Open_Loop
void mc_set_Open_Loop()
set type of regulation
Definition: mc_control.c:175
mc_set_Speed_Loop
void mc_set_Speed_Loop()
set type of regulation
Definition: mc_control.c:182
mc_set_Current_Loop
void mc_set_Current_Loop()
set type of regulation
Definition: mc_control.c:189
mc_get_Duty_Cycle
U8 mc_get_Duty_Cycle()
set type of regulation
Definition: mc_control.c:197