From fa7591256758951fae5413b63ead0bd4c537272c Mon Sep 17 00:00:00 2001 From: Robofish <1683502971@qq.com> Date: Sun, 5 Oct 2025 13:54:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=85=B3=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- User/module/balance_chassis.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/User/module/balance_chassis.c b/User/module/balance_chassis.c index 1993efd..e149b3b 100644 --- a/User/module/balance_chassis.c +++ b/User/module/balance_chassis.c @@ -33,11 +33,10 @@ static int8_t Chassis_MotorEnable(Chassis_t *c) { static int8_t Chassis_MotorRelax(Chassis_t *c) { if (c == NULL) return CHASSIS_ERR_NULL; + float relax_torque[4] = {0.0f, 0.0f, 0.0f, 0.0f}; + Virtual_Chassis_SendJointTorque(&virtual_chassis, relax_torque); // for (int i = 0; i < 2; i++) { - // // MOTOR_LK_Relax(&c->param->wheel_motors[i]); - // } - // for (int i = 0; i < 4; i++) { - // MOTOR_LZ_Relax(&c->param->joint_motors[i]); + // MOTOR_LK_Relax(&c->param->wheel_motors[i]); // } return CHASSIS_OK; }