![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
修正済みby皆川
Dependencies: mbed Servo cansat_integrated_2 BMP180
Dependents: cansat_integrated_2
Diff: Movement.h
- Revision:
- 8:7209c810309d
- Child:
- 13:c482c4d7a585
diff -r 74994694ec04 -r 7209c810309d Movement.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Movement.h Mon Nov 01 16:52:17 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