修改钢针到达抓料点位后再收缩和在震动点不走的问题

This commit is contained in:
cdeyw
2025-02-20 17:48:54 +08:00
parent 1e73137f72
commit 0e69647b11
12 changed files with 3905 additions and 174 deletions

View File

@ -1,10 +1,11 @@
#!/usr/bin/python3
import time
from enum import Enum
import Constant
from COM.COM_Robot import RobotClient
from Util.util_time import CClockPulse, CTon
from EMV import *
from .EMV import *
class CatchStatus(Enum):
CNone = 0
@ -37,10 +38,6 @@ class Catch:
# 网络继电器
open(1, 0, 0)
self.is_send_take_command = True
else:
if self.take_continue.Q(True,self.robotClient.time_delay_take*1000):
self.is_send_take_command = False
self.catch_status = CatchStatus.COk
if self.catch_status == CatchStatus.CDrop:
if not self.is_send_command: