Go to the source code of this file.
Defines | |
| #define | ALIGN_DUTY 150 |
| duty cycle during alignment | |
| #define | ALIGN_TIME 200 |
| length of alignment | |
| #define | IMAX 228 |
| #define | K_cur_scal 4 |
| Current regulation scale factor. | |
| #define | K_SPEED 34152 |
| #define | K_speed_scal 4 |
| Speed regulation scale factor. | |
| #define | Kd_cur 0 |
| Current regulation Derivative coefficient. | |
| #define | Kd_speed 0 |
| Speed regulation Derivative coefficient. | |
| #define | Ki_cur 3 |
| Current regulation Integral coefficient. | |
| #define | Ki_speed 30 |
| Speed regulation Integral coefficient. | |
| #define | Kp_cur 1 |
| Current regulation Proportional coefficient. | |
| #define | Kp_speed 30 |
| Speed regulation Proportional coefficient. | |
| #define | MC310_MOTOR |
| #define | N_SAMPLE 8 |
| #define | POT_REF_MIN 180 |
| #define | RAMP_UP_INDEX_MAX 10 |
| number of locations in the 2 tables | |
| #define | RAMP_UP_PERIOD 50 |
| Define here the ramp-up characteristics. | |
| #define | RAMP_UP_STEP_MAX 40 |
| #define | TIMER1_AT_STARTUP_END 500 |
Enumerations | |
| enum | { RUN = TRUE, STOP = FALSE } |
| Define the two states of the motor. More... | |
| enum | { CCW = TRUE, CW = FALSE } |
| Define Direction of rotor : CCW (counter clock wise) and CW (clock wise). More... | |
| enum | { OPEN_LOOP = 0, SPEED_LOOP = 1, CURRENT_LOOP = 2 } |
| Regulation loop modes. More... | |
| enum | Motor_Position { MS_001 = 1, MS_010 = 2, MS_011 = 3, MS_100 = 4, MS_101 = 5, MS_110 = 6 } |
| This enumeration contains the 6 differents values for the Hall Sensors See design document. More... | |
| enum | Motor_State { MS_ALIGN = 1, MS_RAMP_UP = 2, MS_LAST_RAMP_UP = 3, MS_RUNNING = 4, MS_STOP = 5 } |
Definition in file config_motor.h.
| #define ALIGN_DUTY 150 |
| #define ALIGN_TIME 200 |
| #define IMAX 228 |
| #define K_cur_scal 4 |
Current regulation scale factor.
Definition at line 94 of file config_motor.h.
Referenced by mc_control_current().
| #define K_SPEED 34152 |
Definition at line 100 of file config_motor.h.
Referenced by mc_init(), and mci_get_measured_speed().
| #define K_speed_scal 4 |
Speed regulation scale factor.
Definition at line 92 of file config_motor.h.
Referenced by mc_control_speed().
| #define Kd_cur 0 |
| #define Kd_speed 0 |
| #define Ki_cur 3 |
Current regulation Integral coefficient.
Definition at line 82 of file config_motor.h.
Referenced by mc_control_current().
| #define Ki_speed 30 |
Speed regulation Integral coefficient.
Definition at line 75 of file config_motor.h.
Referenced by mc_control_speed().
| #define Kp_cur 1 |
Current regulation Proportional coefficient.
Definition at line 80 of file config_motor.h.
Referenced by mc_control_current().
| #define Kp_speed 30 |
Speed regulation Proportional coefficient.
Definition at line 73 of file config_motor.h.
Referenced by mc_control_speed().
| #define MC310_MOTOR |
Definition at line 119 of file config_motor.h.
| #define N_SAMPLE 8 |
Definition at line 65 of file config_motor.h.
| #define POT_REF_MIN 180 |
| #define RAMP_UP_INDEX_MAX 10 |
number of locations in the 2 tables
Definition at line 126 of file config_motor.h.
Referenced by main().
| #define RAMP_UP_PERIOD 50 |
Define here the ramp-up characteristics.
50 mS
Definition at line 125 of file config_motor.h.
Referenced by main().
| #define RAMP_UP_STEP_MAX 40 |
| #define TIMER1_AT_STARTUP_END 500 |
| anonymous enum |
| anonymous enum |
| anonymous enum |
Regulation loop modes.
Definition at line 68 of file config_motor.h.
00068 {OPEN_LOOP = 0, SPEED_LOOP = 1, CURRENT_LOOP = 2};
| enum Motor_Position |
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 52 of file config_motor.h.
| enum Motor_State |
Definition at line 53 of file config_motor.h.
00053 {MS_ALIGN=1,MS_RAMP_UP=2,MS_LAST_RAMP_UP=3,MS_RUNNING=4,MS_STOP=5} Motor_State;
1.5.7.1