fix(eda-robot-pro): Optimize gait algorithm (#1871)

This commit is contained in:
JasonYANG17
2026-03-22 07:03:10 +08:00
committed by GitHub
parent 78008ab9d3
commit dbb8e1d409
2 changed files with 140 additions and 226 deletions

View File

@ -60,6 +60,7 @@ public:
void LiftRightRearLeg(int period = 1000, int height = 45); // 抬起右后腿
//-- Dog gait movements
void GetCurrentPositions(int pos[SERVO_COUNT]);
void Walk(float steps = 4, int period = 1000, int dir = FORWARD);
void Turn(float steps = 4, int period = 2000, int dir = LEFT);
void Sit(int period = 1500);