Skip to content

Commit

Permalink
Merge pull request #2315 from victech-dev/Fix-PositionController
Browse files Browse the repository at this point in the history
Fix - comparing with uninitialized member variable
  • Loading branch information
madratman authored Mar 23, 2020
2 parents c3fdb68 + 4ef44a0 commit 374a883
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class PositionController :

virtual void initialize(unsigned int axis, const IGoal* goal, const IStateEstimator* state_estimator) override
{
if (axis_ == 2)
if (axis == 2)
throw std::invalid_argument("PositionController does not support yaw axis i.e. " + std::to_string(axis));

axis_ = axis;
Expand Down

0 comments on commit 374a883

Please sign in to comment.