Class to drive a Hexapod Robot using two PCA9685 PWM Driver boards.
Dependencies: Gait Hexapod_Leg PCA9685 Tripod
Diff: Hexapod.cpp
- Revision:
- 2:e83b4acfcb36
- Parent:
- 1:24ba9327c9ee
- Child:
- 3:82ac75ea08a7
--- a/Hexapod.cpp Tue May 10 12:15:20 2016 +0000 +++ b/Hexapod.cpp Wed May 11 13:31:45 2016 +0000 @@ -66,8 +66,11 @@ board_2.update(); } -void Hexapod::walk(void) +void Hexapod::walk(int Dir) { + gait.stop(); + + direction = Dir; gait.start(1);