From 992aaf16bc929d9b019e7468ecd0e48b22923100 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Thu, 28 Dec 2023 10:46:09 +0800 Subject: [PATCH] set xy hbot setup in disable mode --- sdk | 2 +- usrc/main.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sdk b/sdk index 85b8278..1bd944d 160000 --- a/sdk +++ b/sdk @@ -1 +1 @@ -Subproject commit 85b827815841cd0ad95352d5ee5917a6034c45e3 +Subproject commit 1bd944d7ea168f6378ac8d8da86badf4c2f0ba27 diff --git a/usrc/main.cpp b/usrc/main.cpp index d5f21eb..cadebf3 100644 --- a/usrc/main.cpp +++ b/usrc/main.cpp @@ -79,14 +79,14 @@ static void initsubmodule() { motora.setAcceleration(300); motora.setDeceleration(300); - motora.setIHOLD_IRUN(0, 4, 10); + motora.setIHOLD_IRUN(0, 1, 10); motorb.setAcceleration(300); motorb.setDeceleration(300); - motorb.setIHOLD_IRUN(0, 4, 10); + motorb.setIHOLD_IRUN(0, 1, 10); - motora.rotate(0); - motorb.rotate(0); + motora.enable(false); + motorb.enable(false); /******************************************************************************* * zcanXYRobotCtrlModule *