|
@ -26,7 +26,7 @@ |
|
|
#define MOTOR1_MAX_D 0 |
|
|
#define MOTOR1_MAX_D 0 |
|
|
#define MOTOR1_MOTOR_RUN_TO_ZERO_SPEED 100 |
|
|
#define MOTOR1_MOTOR_RUN_TO_ZERO_SPEED 100 |
|
|
#define MOTOR1_MOTOR_RUN_TO_ZERO_DEC 300 |
|
|
#define MOTOR1_MOTOR_RUN_TO_ZERO_DEC 300 |
|
|
#define MOTOR1_MOTOR_LOOK_ZERO_EDGE_SPEED 80 |
|
|
|
|
|
|
|
|
#define MOTOR1_MOTOR_LOOK_ZERO_EDGE_SPEED 50 |
|
|
#define MOTOR1_MOTOR_LOOK_ZERO_EDGE_DEC 500 |
|
|
#define MOTOR1_MOTOR_LOOK_ZERO_EDGE_DEC 500 |
|
|
|
|
|
|
|
|
/*********************************************************************************************************************** |
|
|
/*********************************************************************************************************************** |
|
@ -37,8 +37,10 @@ |
|
|
#define MOTOR2_SPI_MODE_SELECT PinNull |
|
|
#define MOTOR2_SPI_MODE_SELECT PinNull |
|
|
#define MOTOR2_REFL PD11 |
|
|
#define MOTOR2_REFL PD11 |
|
|
#define MOTOR2_REFR PinNull |
|
|
#define MOTOR2_REFR PinNull |
|
|
|
|
|
#define MOTOR2_REFL_MIRROR true |
|
|
|
|
|
#define MOTOR2_REFR_MIRROR false |
|
|
|
|
|
|
|
|
#define MOTOR2_MOTOR_SHAFT true |
|
|
|
|
|
|
|
|
#define MOTOR2_MOTOR_SHAFT false |
|
|
#define MOTOR2_MOTOR_ONE_CIRCLE_PULSE 200 // 20mm 单位0.1mm |
|
|
#define MOTOR2_MOTOR_ONE_CIRCLE_PULSE 200 // 20mm 单位0.1mm |
|
|
#define MOTOR2_MOTOR_ONE_CIRCLE_PULSE_DENOMINATOR 1 |
|
|
#define MOTOR2_MOTOR_ONE_CIRCLE_PULSE_DENOMINATOR 1 |
|
|
#define MOTOR2_STEPMOTOR_IHOLD 2 |
|
|
#define MOTOR2_STEPMOTOR_IHOLD 2 |
|
@ -52,8 +54,8 @@ |
|
|
#define MOTOR2_MAX_D 0 |
|
|
#define MOTOR2_MAX_D 0 |
|
|
#define MOTOR2_MOTOR_RUN_TO_ZERO_SPEED 100 |
|
|
#define MOTOR2_MOTOR_RUN_TO_ZERO_SPEED 100 |
|
|
#define MOTOR2_MOTOR_RUN_TO_ZERO_DEC 300 |
|
|
#define MOTOR2_MOTOR_RUN_TO_ZERO_DEC 300 |
|
|
#define MOTOR2_MOTOR_LOOK_ZERO_EDGE_SPEED 80 |
|
|
|
|
|
#define MOTOR2_MOTOR_LOOK_ZERO_EDGE_DEC 500 |
|
|
|
|
|
|
|
|
#define MOTOR2_MOTOR_LOOK_ZERO_EDGE_SPEED 50 |
|
|
|
|
|
#define MOTOR2_MOTOR_LOOK_ZERO_EDGE_DEC 300 |
|
|
|
|
|
|
|
|
/*********************************************************************************************************************** |
|
|
/*********************************************************************************************************************** |
|
|
* 摇匀电机 * |
|
|
* 摇匀电机 * |
|
@ -63,17 +65,19 @@ |
|
|
#define MOTOR3_SPI_MODE_SELECT PinNull |
|
|
#define MOTOR3_SPI_MODE_SELECT PinNull |
|
|
#define MOTOR3_REFL PD6 |
|
|
#define MOTOR3_REFL PD6 |
|
|
#define MOTOR3_REFR PinNull |
|
|
#define MOTOR3_REFR PinNull |
|
|
|
|
|
#define MOTOR3_REFL_MIRROR true |
|
|
|
|
|
#define MOTOR3_REFR_MIRROR false |
|
|
|
|
|
|
|
|
#define MOTOR3_MOTOR_SHAFT true |
|
|
#define MOTOR3_MOTOR_SHAFT true |
|
|
#define MOTOR3_MOTOR_ONE_CIRCLE_PULSE 120 // 360转一圈 |
|
|
#define MOTOR3_MOTOR_ONE_CIRCLE_PULSE 120 // 360转一圈 |
|
|
#define MOTOR3_MOTOR_ONE_CIRCLE_PULSE_DENOMINATOR 1 |
|
|
#define MOTOR3_MOTOR_ONE_CIRCLE_PULSE_DENOMINATOR 1 |
|
|
#define MOTOR3_STEPMOTOR_IHOLD 2 |
|
|
|
|
|
#define MOTOR3_STEPMOTOR_IRUN 18 |
|
|
|
|
|
|
|
|
#define MOTOR3_STEPMOTOR_IHOLD 6 |
|
|
|
|
|
#define MOTOR3_STEPMOTOR_IRUN 31 |
|
|
#define MOTOR3_STEPMOTOR_IHOLDDELAY 100 |
|
|
#define MOTOR3_STEPMOTOR_IHOLDDELAY 100 |
|
|
#define MOTOR3_STEPMOTOR_IGLOBALSCALER 1 |
|
|
#define MOTOR3_STEPMOTOR_IGLOBALSCALER 1 |
|
|
#define MOTOR3_MOTOR_DEFAULT_ACC 300 |
|
|
#define MOTOR3_MOTOR_DEFAULT_ACC 300 |
|
|
#define MOTOR3_MOTOR_DEFAULT_DEC 300 |
|
|
#define MOTOR3_MOTOR_DEFAULT_DEC 300 |
|
|
#define MOTOR3_MOTOR_DEFAULT_VELOCITY 150 |
|
|
|
|
|
|
|
|
#define MOTOR3_MOTOR_DEFAULT_VELOCITY 500 |
|
|
#define MOTOR3_MIN_D 0 |
|
|
#define MOTOR3_MIN_D 0 |
|
|
#define MOTOR3_MAX_D 0 |
|
|
#define MOTOR3_MAX_D 0 |
|
|
#define MOTOR3_MOTOR_RUN_TO_ZERO_SPEED 50 |
|
|
#define MOTOR3_MOTOR_RUN_TO_ZERO_SPEED 50 |
|
|