|
|
@ -424,9 +424,20 @@ void Strong_Grinding_Machine_Halt_State_Do(void) |
|
|
strong_grinding_machine_cmd = 0; |
|
|
strong_grinding_machine_cmd = 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
extern uint8_t IsAllowRotation; |
|
|
|
|
|
extern int Knife_Detection(void); |
|
|
|
|
|
|
|
|
void Strong_Grinding_Machine_Motion_State_Do(void) |
|
|
void Strong_Grinding_Machine_Motion_State_Do(void) |
|
|
{ |
|
|
{ |
|
|
strong_grinding_machine_cmd = 1; |
|
|
IsAllowRotation = Knife_Detection(); |
|
|
|
|
|
if(IsAllowRotation == 1) |
|
|
|
|
|
{ |
|
|
|
|
|
strong_grinding_machine_cmd = 1; |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
strong_grinding_machine_cmd = 0; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void auto_forward_state_do(void) |
|
|
void auto_forward_state_do(void) |
|
|
|