
Go to the source code of this file.
Defines | |
| #define | CURRENT_LOOP 2 |
| #define | IMAX (6 * 10) |
| #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 8 |
| #define | Kp_cur 1 |
| #define | Kp_pos 9 |
| #define | Kp_speed 8 |
| #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... | |
Copyright (c) 2007 Atmel.
Motor Configuration
Definition in file config_motor.h.
| #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) |
Definition at line 96 of file config_motor.h.
| #define K_cur_scal 4 |
| #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.
| #define K_speed_scal 4 |
| #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 |
| #define Ki_pos 3 |
Definition at line 67 of file config_motor.h.
| #define Ki_speed 8 |
| #define Kp_cur 1 |
| #define Kp_pos 9 |
Definition at line 66 of file config_motor.h.
| #define Kp_speed 8 |
| #define n_SAMPLE 8 |
Definition at line 43 of file config_motor.h.
| #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
Definition at line 23 of file config_motor.h.
| anonymous enum |
| anonymous enum |
1.5.7.1