update motor module
This commit is contained in:
12
ccs/motor.h
12
ccs/motor.h
@@ -1,25 +1,17 @@
|
||||
#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_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);
|
||||
void motor_move_custom(int left_speed, int right_speed);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user