Skip to content

Commit

Permalink
PID.cc edited online with Bitbucket
Browse files Browse the repository at this point in the history
  • Loading branch information
nkoenig committed Jul 6, 2016
1 parent 66f37e9 commit 5a9dfe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PID.cc
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ double PID::Update(double _error, std::chrono::duration<double> _dt)
this->cmd = -pTerm - iTerm - dTerm;

// Check the command limits
if (!(this->cmdMax < this->cmdMin))
if (this->cmdMax >= this->cmdMin)
this->cmd = clamp(this->cmd, this->cmdMin, this->cmdMax);

return this->cmd;
Expand Down

0 comments on commit 5a9dfe8

Please sign in to comment.