|
|
@ -240,6 +240,14 @@ void Automatic_Laser_Scanning() |
|
|
} |
|
|
} |
|
|
#endif |
|
|
#endif |
|
|
} |
|
|
} |
|
|
|
|
|
else if (GV.MK32_Key.CH7_SD == -1000) |
|
|
|
|
|
{ |
|
|
|
|
|
ScanTimeCount = HAL_GetTick(); |
|
|
|
|
|
ScanState = RISE_KINFE_STATE; |
|
|
|
|
|
CurrentMoveState = Move_HALT; |
|
|
|
|
|
CurrentFrontEndState = HALT_STATE; |
|
|
|
|
|
MaxLaserSensor = 10000;// 恢复非法值
|
|
|
|
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
ScanTimeCount = HAL_GetTick(); |
|
|
ScanTimeCount = HAL_GetTick(); |
|
|
@ -254,11 +262,11 @@ void Automatic_Laser_Scanning() |
|
|
#define knife_rising_height 500 // 自动作业停止后默认上升高度为5mm
|
|
|
#define knife_rising_height 500 // 自动作业停止后默认上升高度为5mm
|
|
|
uint8_t auto_work_mode_states = 5; |
|
|
uint8_t auto_work_mode_states = 5; |
|
|
uint8_t auto_work_halt_states = 10; |
|
|
uint8_t auto_work_halt_states = 10; |
|
|
|
|
|
int32_t knife_current_altitude = 0; // 激光1读数
|
|
|
|
|
|
|
|
|
void Automatic_Operation() |
|
|
void Automatic_Operation() |
|
|
{ |
|
|
{ |
|
|
static int knife_flag = 1; |
|
|
static int knife_flag = 1; |
|
|
int32_t knife_current_altitude = 0; // 激光1读数
|
|
|
|
|
|
uint8_t IsAllowRotation_AutoMode = 0; // 是否允许转刀
|
|
|
uint8_t IsAllowRotation_AutoMode = 0; // 是否允许转刀
|
|
|
|
|
|
|
|
|
if (-255 == knife_descent_height) |
|
|
if (-255 == knife_descent_height) |
|
|
|