약간의 수정
This commit is contained in:
2
ccs/motor.c
Normal file → Executable file
2
ccs/motor.c
Normal file → Executable 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);
|
||||
|
||||
Reference in New Issue
Block a user