Skip to content

Commit 68b0e22

Browse files
authored
OTTO 左右腿反了 (#1239)
1 parent dd45d0d commit 68b0e22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/boards/otto-robot/otto_movements.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ void Otto::ShakeLeg(int steps, int period, int dir) {
389389
int homes[SERVO_COUNT] = {90, 90, 90, 90, HAND_HOME_POSITION, 180 - HAND_HOME_POSITION};
390390

391391
// Changes in the parameters if left leg is chosen
392-
if (dir == -1) {
392+
if (dir == 1) {
393393
shake_leg1[2] = 180 - 35;
394394
shake_leg1[3] = 180 - 58;
395395
shake_leg2[2] = 180 - 120;

0 commit comments

Comments
 (0)