Skip to content

Commit

Permalink
Merge pull request #311 from HassoPlattnerInstituteHCI/hotfix
Browse files Browse the repository at this point in the history
hotfix on rotation PID on it handle (flipped)
  • Loading branch information
JotaroS authored Jun 18, 2020
2 parents 9bdaf20 + 1ef5993 commit 4a65cea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions firmware/src/hardware/panto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ void Panto::actuateMotors()
{
error += TWO_PI;
}
if(encoderFlipped[c_globalHandleIndex]==1) error*=-1;
}
unsigned char dir = error < 0;
unsigned long now = micros();
Expand Down

0 comments on commit 4a65cea

Please sign in to comment.