From 6e1bdad9f2784406fb8d33030566fb5bef668825 Mon Sep 17 00:00:00 2001 From: HSZ_HeSongZhen <210202959@qq.com> Date: Wed, 7 May 2025 20:24:58 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E9=97=A8=E7=94=B5=E6=9C=BA=E6=8C=87?= =?UTF-8?q?=E4=BB=A4=E5=A2=9E=E5=8A=A0block?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/iflytop/gd/hardware/drivers/StepMotorDriver/DoorDriver.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/iflytop/gd/hardware/drivers/StepMotorDriver/DoorDriver.java b/src/main/java/com/iflytop/gd/hardware/drivers/StepMotorDriver/DoorDriver.java index 1f0829f..2f99f0d 100644 --- a/src/main/java/com/iflytop/gd/hardware/drivers/StepMotorDriver/DoorDriver.java +++ b/src/main/java/com/iflytop/gd/hardware/drivers/StepMotorDriver/DoorDriver.java @@ -35,7 +35,7 @@ public class DoorDriver{ // ==== ==== ==== ==== ==== ==== Ctrl ==== ==== ==== ==== ==== ==== public void moveToHome(StepMotorMId stepMotorMId) throws Exception { - stepMotorCtrlDriver_.stepMotorEasyMoveToZero(stepMotorMId); + stepMotorCtrlDriver_.stepMotorEasyMoveToZeroBlock(stepMotorMId); } public void moveTo(StepMotorMId stepMotorMId, double position) throws Exception @@ -46,7 +46,7 @@ public class DoorDriver{ } int motorPosition = StepMotorHelper.toMotorPosition(position); - stepMotorCtrlDriver_.stepMotorEasyMoveTo(stepMotorMId, motorPosition); + stepMotorCtrlDriver_.stepMotorEasyMoveToBlock(stepMotorMId, motorPosition); } public void moveBy(StepMotorMId stepMotorMId, double distance) throws Exception @@ -57,7 +57,7 @@ public class DoorDriver{ } int motorPosition = StepMotorHelper.toMotorPosition(distance); - stepMotorCtrlDriver_.stepMotorEasyMoveBy(stepMotorMId, motorPosition); + stepMotorCtrlDriver_.stepMotorEasyMoveByBlock(stepMotorMId, motorPosition); } public void stop(StepMotorMId stepMotorMId) throws Exception {