Skip to content

Commit

Permalink
🐹 Fixes crawl gait body shift order
Browse files Browse the repository at this point in the history
  • Loading branch information
runeharlyk committed Oct 27, 2024
1 parent 7849f77 commit 7dd5797
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/src/lib/gait.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ export class EightPhaseWalkState extends PhaseGaitState {
];
protected shifts = [
[-0.05, 0, -0.2],
[0.3, 0, -0.2],
[0.3, 0, 0.2],
[-0.05, 0, 0.2],
[0.3, 0, 0.2]
[0.3, 0, -0.2]
];
protected swing_stand_ratio = 1 / (this.num_phases - 1);

Expand Down
2 changes: 1 addition & 1 deletion esp32/lib/ESP32-sveltekit/Gait/GaitState.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class EightPhaseWalkState : public PhaseGaitState {
EightPhaseWalkState() {
uint8_t contact[4][8] = {
{1, 0, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 0, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 0, 1, 1, 1, 1}};
float shift_values[4][3] = {{-0.05f, 0, -0.2f}, {0.25f, 0, -0.2f}, {-0.05f, 0, 0.2f}, {0.25f, 0, 0.2f}};
float shift_values[4][3] = {{-0.05f, 0, -0.2f}, {0.25f, 0, 0.2f}, {-0.05f, 0, 0.2f}, {0.25f, 0, -0.2f}};
for (uint8_t i = 0; i < 4; ++i) {
for (uint8_t j = 0; j < 8; ++j) {
contact_phases[i][j] = contact[i][j];
Expand Down

0 comments on commit 7dd5797

Please sign in to comment.