![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
NHK2017 octopus robot
Dependencies: 2017NHKpin_config mbed FEP ikarashiMDC PID jy901 omni HMC6352 omni_wheel
Fork of KANI2017v2 by
Diff: bot/tentacle_unit/tentacle_unit.h
- Revision:
- 23:37bb9afe9fdc
- Child:
- 26:7258d5ad0bff
diff -r 682cc376da6f -r 37bb9afe9fdc bot/tentacle_unit/tentacle_unit.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bot/tentacle_unit/tentacle_unit.h Wed Sep 13 14:26:47 2017 +0900 @@ -0,0 +1,24 @@ +#ifndef TENTACLE_UNIT_H +#define TENTACLE_UNIT_H + +#include "mbed.h" +#include "pin_config.h" +#include "ikarashiMDC.h" +#include "limitSwitch.h" + + +class Tentacle { +public: + Tentacle(DigitalOut* RS485Controller, Serial *RS485); + + void rightMove(float speed); + void leftMove(float speed); + void stop(); +private: + + ikarashiMDC tentacleMotor[2]; + Limit right; + Limit left; +}; + +#endif