Skip to content

Commit

Permalink
can id 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
suping4 authored Dec 12, 2024
1 parent 4a56394 commit f874936
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Client/RSP5(Motor)/src/CANController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -110,4 +107,4 @@ void CANController::processMessages() {
}
}
}
}
}

0 comments on commit f874936

Please sign in to comment.