更新界面+更新步进电机bug和达妙电机调试接口

This commit is contained in:
2026-02-27 17:24:03 +08:00
parent 8d2e91b8b3
commit 9b7ff4b98f
3 changed files with 119 additions and 161 deletions

View File

@ -195,7 +195,7 @@ def align_wire(speed: int, cycle: float):
GLOBAL_MOTOR.rotate(pulse_frequency=speed, rounds=cycle, direction=0)
time.sleep(5) # 暂停5秒
# 远离电机方向 顺时针
GLOBAL_MOTOR.rotate(pulse_frequency=speed,rounds=10.0, direction=1)
GLOBAL_MOTOR.rotate(pulse_frequency=speed,rounds=cycle, direction=1)
time.sleep(5) # 暂停5秒
except ImportError: