6足歩行試験用プログラム Movement のdefine の値を変えると方向変換

Dependencies:   mbed Servo

Revision:
0:6b57aea7ad9b
diff -r 000000000000 -r 6b57aea7ad9b Movement.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Movement.h	Mon Dec 06 08:54:49 2021 +0000
@@ -0,0 +1,25 @@
+#ifndef MOVEMENT_H
+#define MOVEMENT_H
+
+#include "mbed.h"
+#include "Servo.h"   
+
+class Movement
+{    
+public:
+
+//停止
+    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