3 changed files with 118 additions and 12 deletions
-
2sdk
-
73usrc/subboards/subboard30_shake_module/pri_board.h
-
55usrc/subboards/subboard30_shake_module/subboard30_shake_module.cpp
@ -1 +1 @@ |
|||
Subproject commit 599ae6d11aaf71a05f8cc2436a230b2e880d43d0 |
|||
Subproject commit 42fbbd4c7b2d17d07d3bc5cb3f603d1466318293 |
@ -1,21 +1,80 @@ |
|||
#pragma once |
|||
|
|||
#define TMC_MOTOR_SPI hspi1 |
|||
// JL_CSN |
|||
/*********************************************************************************************************************** |
|||
* 试管夹爪电机 * |
|||
***********************************************************************************************************************/ |
|||
#define MOTOR1_CSN PA4 |
|||
#define MOTOR1_ENN PE3 |
|||
#define MOTOR1_SPI_MODE_SELECT PinNull |
|||
#define MOTOR1_REFL PD13 |
|||
#define MOTOR1_REFR PD14 |
|||
// SL_CSN |
|||
#define MOTOR1_REFR PinNull |
|||
|
|||
#define MOTOR1_MOTOR_SHAFT true |
|||
#define MOTOR1_MOTOR_ONE_CIRCLE_PULSE 15 |
|||
#define MOTOR1_MOTOR_ONE_CIRCLE_PULSE_DENOMINATOR 1 |
|||
#define MOTOR1_STEPMOTOR_IHOLD 2 |
|||
#define MOTOR1_STEPMOTOR_IRUN 8 |
|||
#define MOTOR1_STEPMOTOR_IHOLDDELAY 100 |
|||
#define MOTOR1_STEPMOTOR_IGLOBALSCALER 1 |
|||
#define MOTOR1_MOTOR_DEFAULT_ACC 300 |
|||
#define MOTOR1_MOTOR_DEFAULT_DEC 300 |
|||
#define MOTOR1_MOTOR_DEFAULT_VELOCITY 150 |
|||
#define MOTOR1_MIN_D 0 |
|||
#define MOTOR1_MAX_D 0 |
|||
#define MOTOR1_MOTOR_RUN_TO_ZERO_SPEED 100 |
|||
#define MOTOR1_MOTOR_RUN_TO_ZERO_DEC 300 |
|||
#define MOTOR1_MOTOR_LOOK_ZERO_EDGE_SPEED 80 |
|||
#define MOTOR1_MOTOR_LOOK_ZERO_EDGE_DEC 500 |
|||
|
|||
/*********************************************************************************************************************** |
|||
* 升降电机 * |
|||
***********************************************************************************************************************/ |
|||
#define MOTOR2_CSN PA8 |
|||
#define MOTOR2_ENN PE6 |
|||
#define MOTOR2_SPI_MODE_SELECT PinNull |
|||
#define MOTOR2_REFL PD11 |
|||
#define MOTOR2_REFR PD12 |
|||
// CL_CSN |
|||
#define MOTOR2_REFR PinNull |
|||
|
|||
#define MOTOR2_MOTOR_SHAFT true |
|||
#define MOTOR2_MOTOR_ONE_CIRCLE_PULSE 200 // 20mm 单位0.1mm |
|||
#define MOTOR2_MOTOR_ONE_CIRCLE_PULSE_DENOMINATOR 1 |
|||
#define MOTOR2_STEPMOTOR_IHOLD 2 |
|||
#define MOTOR2_STEPMOTOR_IRUN 8 |
|||
#define MOTOR2_STEPMOTOR_IHOLDDELAY 100 |
|||
#define MOTOR2_STEPMOTOR_IGLOBALSCALER 1 |
|||
#define MOTOR2_MOTOR_DEFAULT_ACC 300 |
|||
#define MOTOR2_MOTOR_DEFAULT_DEC 300 |
|||
#define MOTOR2_MOTOR_DEFAULT_VELOCITY 150 |
|||
#define MOTOR2_MIN_D 0 |
|||
#define MOTOR2_MAX_D 0 |
|||
#define MOTOR2_MOTOR_RUN_TO_ZERO_SPEED 100 |
|||
#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 MOTOR3_CSN PA15 |
|||
#define MOTOR3_ENN PE7 |
|||
#define MOTOR3_SPI_MODE_SELECT PinNull |
|||
#define MOTOR3_REFL PD9 |
|||
#define MOTOR3_REFR PD10 |
|||
#define MOTOR3_REFL PD6 |
|||
#define MOTOR3_REFR PinNull |
|||
|
|||
#define MOTOR3_MOTOR_SHAFT true |
|||
#define MOTOR3_MOTOR_ONE_CIRCLE_PULSE 120 // 360转一圈 |
|||
#define MOTOR3_MOTOR_ONE_CIRCLE_PULSE_DENOMINATOR 1 |
|||
#define MOTOR3_STEPMOTOR_IHOLD 2 |
|||
#define MOTOR3_STEPMOTOR_IRUN 18 |
|||
#define MOTOR3_STEPMOTOR_IHOLDDELAY 100 |
|||
#define MOTOR3_STEPMOTOR_IGLOBALSCALER 1 |
|||
#define MOTOR3_MOTOR_DEFAULT_ACC 300 |
|||
#define MOTOR3_MOTOR_DEFAULT_DEC 300 |
|||
#define MOTOR3_MOTOR_DEFAULT_VELOCITY 150 |
|||
#define MOTOR3_MIN_D 0 |
|||
#define MOTOR3_MAX_D 0 |
|||
#define MOTOR3_MOTOR_RUN_TO_ZERO_SPEED 50 |
|||
#define MOTOR3_MOTOR_RUN_TO_ZERO_DEC 300 |
|||
#define MOTOR3_MOTOR_LOOK_ZERO_EDGE_SPEED 50 |
|||
#define MOTOR3_MOTOR_LOOK_ZERO_EDGE_DEC 500 |
Write
Preview
Loading…
Cancel
Save
Reference in new issue