Skip to content

Commit

Permalink
Add only one merge point to the last double spport phase
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Dafarra committed Jan 24, 2024
1 parent 816a630 commit 494a182
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/UnicycleGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ class UnicycleGenerator::UnicycleGeneratorImplementation {
stance->insert(stance->end(), switchSamples, StepPhase::SwitchOut);
phaseShift.push_back(phaseShift.back() + switchSamples);

for (size_t m = phaseShift.back() - switchSamples; m < phaseShift.back(); ++m)
mergePoints.push_back(m);
mergePoints.push_back(phaseShift.back() - 1); //merge on the last

lFootPhases->shrink_to_fit();
rFootPhases->shrink_to_fit();
Expand Down

0 comments on commit 494a182

Please sign in to comment.