From f8749362c1a2c9d2545418636f892e3cb2052985 Mon Sep 17 00:00:00 2001 From: Junsup Kim <88069526+suping4@users.noreply.github.com> Date: Thu, 12 Dec 2024 15:32:05 +0900 Subject: [PATCH] =?UTF-8?q?can=20id=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Client/RSP5(Motor)/src/CANController.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Client/RSP5(Motor)/src/CANController.cpp b/Client/RSP5(Motor)/src/CANController.cpp index 60f2a25..085bb1e 100644 --- a/Client/RSP5(Motor)/src/CANController.cpp +++ b/Client/RSP5(Motor)/src/CANController.cpp @@ -84,14 +84,11 @@ void CANController::processMessages() { motor.setDegree(150); sleep(MOTOR_DELAY); - frame.can_id = 0x002; + frame.can_id = 0x003; frame.can_dlc = 3; frame.data[0] = 0b00000100; sendCANMessage(frame); - frame.can_id = 0x001; - sendCANMessage(frame); - printf("자동 잠금 - 모터 구동\n"); motor.setDegree(50); printf("잠금 장치 구동 완료\n"); @@ -110,4 +107,4 @@ void CANController::processMessages() { } } } -} \ No newline at end of file +}