OTTO 左右腿反了 (#1239)

This commit is contained in:
Toby
2025-09-27 05:20:37 +08:00
committed by GitHub
parent dd45d0de26
commit 68b0e225a2

View File

@@ -389,7 +389,7 @@ void Otto::ShakeLeg(int steps, int period, int dir) {
int homes[SERVO_COUNT] = {90, 90, 90, 90, HAND_HOME_POSITION, 180 - HAND_HOME_POSITION}; int homes[SERVO_COUNT] = {90, 90, 90, 90, HAND_HOME_POSITION, 180 - HAND_HOME_POSITION};
// Changes in the parameters if left leg is chosen // Changes in the parameters if left leg is chosen
if (dir == -1) { if (dir == 1) {
shake_leg1[2] = 180 - 35; shake_leg1[2] = 180 - 35;
shake_leg1[3] = 180 - 58; shake_leg1[3] = 180 - 58;
shake_leg2[2] = 180 - 120; shake_leg2[2] = 180 - 120;