약간의 수정

This commit is contained in:
2025-12-09 02:34:41 +09:00
parent 0697b5ab31
commit d3a2802333
22 changed files with 406 additions and 25 deletions

2
ccs/motor.c Normal file → Executable file
View File

@@ -1,5 +1,6 @@
#include "motor.h"
#include "Clock.h"
#include <stdio.h>
// Period: 20ms
// MAX speed: 20
@@ -172,7 +173,6 @@ void motor_move_custom(int left_speed, int right_speed) { // positive will be fo
if (right_speed >= 0) set_dir_r('f');
else if (right_speed < 0) set_dir_r('b');
if (l_speed >= r_speed) {
set_en_l(1);
set_en_r(1);