添加一些测试备注

This commit is contained in:
2026-02-27 18:02:55 +08:00
parent 9b7ff4b98f
commit c20c750635
3 changed files with 8 additions and 3 deletions

View File

@ -242,7 +242,7 @@ if __name__ == '__main__':
# 首先在吸附位置处进行 设置零点位置
set_zero_position()
reset_motor()
reset_motor() # 待测试
set_dm_motor_speed(30)
set_drop_position(282.6)
@ -250,5 +250,7 @@ if __name__ == '__main__':
# 起始位置:吸附位置
move_to_drop_position()
time.sleep(5) # 电机运动需要的时间
move_to_ori_position()
time.sleep(5) # 电机运动需要的时间

View File

@ -211,5 +211,6 @@ def cleanup():
if __name__ == '__main__':
motor_start(2500, 10.0, 1)
align_wire(speed=2500, cycle=10.0)
time.sleep(10) # 电机运动需要的时间

View File

@ -141,5 +141,7 @@ if __name__ == '__main__':
set_servo_ori_position(0)
set_servo_rot_position(180)
move_to_rot_position()
move_to_rot_position() # 旋转180度
time.sleep(1)
move_to_ori_position() # 旋转0度
time.sleep(1)