![]() |
BLDC control on ATAVRMC303 with ATxMega128A1
|
,v More...

Go to the source code of this file.
Macros | |
| #define | CURRENT_LOOP 2 |
| #define | IMAX (6 * 10) /* 6 amps */ |
| #define | K_cur_scal 4 |
| #define | K_pos_scal 5 |
| #define | K_SPEED 34152 |
| #define | K_speed_scal 4 |
| #define | Kd_cur 0 |
| #define | Kd_pos 20 |
| #define | Kd_speed 0 |
| #define | Ki_cur 3 |
| #define | Ki_pos 3 |
| #define | Ki_speed 4 |
| #define | Kp_cur 1 |
| #define | Kp_pos 9 |
| #define | Kp_speed 6 |
| #define | n_SAMPLE 8 |
| #define | OPEN_LOOP 0 |
| #define | SPEED_LOOP 1 |
Enumerations | |
| enum | { HS_001 =1, HS_010 =2, HS_011 =3, HS_100 =4, HS_101 =5, HS_110 =6 } |
| This enumeration contains the 6 differents values for the Hall Sensors See design document. More... | |
| enum | { RUN = TRUE, STOP = FALSE } |
| Define the two states of the motor. More... | |
| enum | { CCW = TRUE, CW = FALSE } |
| Define Direction of rotor : CCW and CW. More... | |
| #define CURRENT_LOOP 2 |
Definition at line 48 of file config_motor.h.
Referenced by mc_regulation_loop(), and mc_set_Current_Loop().
| #define IMAX (6 * 10) /* 6 amps */ |
Definition at line 96 of file config_motor.h.
| #define K_cur_scal 4 |
Definition at line 75 of file config_motor.h.
Referenced by mc_control_current().
| #define K_pos_scal 5 |
Definition at line 76 of file config_motor.h.
| #define K_SPEED 34152 |
Definition at line 82 of file config_motor.h.
Referenced by mc_estimation_speed().
| #define K_speed_scal 4 |
Definition at line 74 of file config_motor.h.
Referenced by mc_control_speed().
| #define Kd_cur 0 |
Definition at line 63 of file config_motor.h.
| #define Kd_pos 20 |
Definition at line 68 of file config_motor.h.
| #define Kd_speed 0 |
Definition at line 58 of file config_motor.h.
| #define Ki_cur 3 |
Definition at line 62 of file config_motor.h.
Referenced by mc_control_current().
| #define Ki_pos 3 |
Definition at line 67 of file config_motor.h.
| #define Ki_speed 4 |
Definition at line 57 of file config_motor.h.
Referenced by mc_control_speed().
| #define Kp_cur 1 |
Definition at line 61 of file config_motor.h.
Referenced by mc_control_current().
| #define Kp_pos 9 |
Definition at line 66 of file config_motor.h.
| #define Kp_speed 6 |
Definition at line 56 of file config_motor.h.
Referenced by mc_control_speed().
| #define n_SAMPLE 8 |
Definition at line 43 of file config_motor.h.
Referenced by mc_estimation_speed().
| #define OPEN_LOOP 0 |
Definition at line 46 of file config_motor.h.
Referenced by mc_regulation_loop(), and mc_set_Open_Loop().
| #define SPEED_LOOP 1 |
Definition at line 47 of file config_motor.h.
Referenced by mc_regulation_loop(), and mc_set_Speed_Loop().
| anonymous enum |
This enumeration contains the 6 differents values for the Hall Sensors See design document.
In this application, just 3 hall sensor are used Hall Sensor : position 1 to 6
| Enumerator | |
|---|---|
| HS_001 | |
| HS_010 | |
| HS_011 | |
| HS_100 | |
| HS_101 | |
| HS_110 | |
Definition at line 23 of file config_motor.h.
| anonymous enum |
Define the two states of the motor.
| Enumerator | |
|---|---|
| RUN | |
| STOP | |
Definition at line 29 of file config_motor.h.
| anonymous enum |
Define Direction of rotor : CCW and CW.
| Enumerator | |
|---|---|
| CCW | |
| CW | |
Definition at line 34 of file config_motor.h.