|
@@ -322,10 +322,27 @@ class ProgramItem(BaseClass):
|
|
|
await asyncio.sleep(0.01)
|
|
await asyncio.sleep(0.01)
|
|
|
|
|
|
|
|
if self.turntable_position is not None:
|
|
if self.turntable_position is not None:
|
|
|
|
|
+ if self.turntable_position == 0:
|
|
|
|
|
+ self.mcu.to_device_move(
|
|
|
|
|
+ device_name="turntable_position_motor", value=1
|
|
|
|
|
+ )
|
|
|
|
|
+ logger.info("转盘位置首次运动===>,%s",1)
|
|
|
|
|
+ elif self.turntable_position == 800:
|
|
|
|
|
+ self.mcu.to_device_move(
|
|
|
|
|
+ device_name="turntable_position_motor", value=799
|
|
|
|
|
+ )
|
|
|
|
|
+ logger.info("转盘位置首次运动===>,%s",799)
|
|
|
|
|
+ else:
|
|
|
|
|
+ self.mcu.to_device_move(
|
|
|
|
|
+ device_name="turntable_position_motor", value=self.turntable_position-1
|
|
|
|
|
+ )
|
|
|
|
|
+ logger.info("转盘位置首次运动===>,%s",self.turntable_position-1)
|
|
|
|
|
+ await asyncio.sleep(0.01)
|
|
|
self.mcu.to_device_move(
|
|
self.mcu.to_device_move(
|
|
|
device_name="turntable_position_motor",
|
|
device_name="turntable_position_motor",
|
|
|
value=self.turntable_position,
|
|
value=self.turntable_position,
|
|
|
)
|
|
)
|
|
|
|
|
+ logger.info("转盘位置2次运动===>,%s",self.turntable_position)
|
|
|
await asyncio.sleep(0.01)
|
|
await asyncio.sleep(0.01)
|
|
|
|
|
|
|
|
if self.turntable_angle is not None:
|
|
if self.turntable_angle is not None:
|