Skip to content

Commit

Permalink
Removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
Shobuj-Paul committed Feb 17, 2024
1 parent 4fa17ae commit 434ca9d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/controllers/pi_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,6 @@ float controllers::PIController::clamp(float input, float upper_limit, float low
return input;
}

float controllers::PIController::reset(float input, float output, float upper_limit, float lower_limit)
{
if (input > 0 && output >= upper_limit)
return 0;
else if (input < 0 && output <= lower_limit)
return 0;
else
return input;
}

float controllers::PIController::loop(float error, const PIConfig& config, float external_integral, bool reset_integral)
{
if (error > 0 && output >= config.upper_limit)
Expand Down

0 comments on commit 434ca9d

Please sign in to comment.