![](/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/bot.cpp
- Revision:
- 21:9c1061982b16
- Parent:
- 20:477c5d039e93
- Child:
- 22:682cc376da6f
--- a/bot/bot.cpp Tue Sep 05 01:23:32 2017 +0000 +++ b/bot/bot.cpp Tue Sep 05 14:07:18 2017 +0900 @@ -23,12 +23,12 @@ if(!pad1.getButton1(0)) motor.moveRightTentacle(TENTACLE_MAX_SPEED); if(!pad1.getButton1(1)) motor.moveRightTentacle(-TENTACLE_MAX_SPEED); if(pad1.getButton1(0) && pad1.getButton1(1)) motor.moveRightTentacle(0); - + if(!pad1.getButton1(2)) motor.moveLeftTentacle(TENTACLE_MAX_SPEED); if(!pad1.getButton1(3)) motor.moveLeftTentacle(-TENTACLE_MAX_SPEED); if(pad1.getButton1(2) && pad1.getButton1(3)) motor.moveLeftTentacle(0); - + }