MG996RのMovement class 統合試験用
Dependencies: mbed
Diff: Movement.h
- Revision:
- 0:f4186a5283c3
diff -r 000000000000 -r f4186a5283c3 Movement.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Movement.h Thu Dec 09 04:48:32 2021 +0000 @@ -0,0 +1,26 @@ +#ifndef MOVEMENT_H +#define MOVEMENT_H + +#include "mbed.h" + + +class Movement +{ +public: + void Move(double ON,DigitalOut& Drive,int time); + +//停止 + void stop(); +//前進 + void move_forward(int time); +//後退 + void move_backward(); +//右に曲がる + void turn_right(int theta); +//左に曲がる + void turn_left(int theta); +//横転から復帰 + void wakeup(int time); +}; + +#endif \ No newline at end of file