From 01ea1a9e78160600eb65adbdecd76aed0d8918cc Mon Sep 17 00:00:00 2001 From: Robofish <1683502971@qq.com> Date: Sat, 4 Oct 2025 22:46:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- User/task/ctrl_lz.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/User/task/ctrl_lz.c b/User/task/ctrl_lz.c index 382696e..6a2c58b 100644 --- a/User/task/ctrl_lz.c +++ b/User/task/ctrl_lz.c @@ -45,6 +45,10 @@ void Task_ctrl_lz(void *argument) { // 注册CAN接收ID BSP_CAN_RegisterId(BSP_CAN_1, 121, 0); // 使能命令 BSP_CAN_RegisterId(BSP_CAN_1, 122, 0); // 力矩控制命令 + + for (int i = 0; i < 4; i++) { + MOTOR_LZ_Enable(&Config_GetRobotParam()->joint_param[i]); + } /* USER CODE INIT END */ while (1) {