first
Dependents: 17robo_fuzi 17robo_tokyo_kaede
Diff: accelerator.h
- Revision:
- 0:e7a61140ec7d
diff -r 000000000000 -r e7a61140ec7d accelerator.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/accelerator.h Wed Sep 20 07:06:29 2017 +0000 @@ -0,0 +1,21 @@ +/* +* [Accelerator] +* 時間を指定し段階的な加減速を行う +*/ + +#ifndef MBED_ACCELERATOR_H +#define MBED_ACCELERATOR_H + +#include "mbed.h" + +class Accelerator{ +public : + void setup(float Acceleration, float time); + float duty(float target); + +private : + float a; + float v; +}; + +#endif \ No newline at end of file