From 803de91b21cd4d0166df423653526fc0f6ca0014 Mon Sep 17 00:00:00 2001 From: Agnel Wang <59766821+Agnel-Wang@users.noreply.github.com> Date: Wed, 20 Sep 2023 17:18:58 +0800 Subject: [PATCH] Update highcmd_development.cpp --- examples/highcmd_development.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/highcmd_development.cpp b/examples/highcmd_development.cpp index 950720c..e29b48d 100644 --- a/examples/highcmd_development.cpp +++ b/examples/highcmd_development.cpp @@ -17,6 +17,7 @@ int main() { arm.q = lastPos*(1-i/duration) + targetPos*(i/duration); arm.qd = (targetPos-lastPos)/(duration*arm._ctrlComp->dt); + arm.setArmCmd(arm.q, arm.qd); timer.sleep(); } @@ -24,4 +25,4 @@ int main() arm.setFsm(UNITREE_ARM::ArmFSMState::PASSIVE); arm.sendRecvThread->shutdown(); return 0; -} \ No newline at end of file +}