initial commit
This commit is contained in:
25
ccs/motor.h
Normal file
25
ccs/motor.h
Normal 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
|
||||
Reference in New Issue
Block a user