initial commit

This commit is contained in:
2025-12-01 19:51:51 +09:00
commit 9c2fdbf8ed
23 changed files with 1757 additions and 0 deletions

25
ccs/motor.h Normal file
View File

@@ -0,0 +1,25 @@
#ifndef _motor_h_
#define _motor_h_
#include "msp.h"
#define PERIOD_ms 20
#define MAX_SPEED PERIOD_ms
void motor_init();
void move_stop();
void motor_move_forward(int speed);
void motor_move_backward(int speed);
void motor_turn_left(int speed);
void motor_turn_right(int speed);
void motor_rotate_clockwise(int speed);
void motor_rotate_cclockwise(int speed);
#endif