From 434ca9d79e440ab67e738392352bc4be4d3a880f Mon Sep 17 00:00:00 2001 From: Shobuj Paul <72087882+Shobuj-Paul@users.noreply.github.com> Date: Sat, 17 Feb 2024 04:43:48 +0000 Subject: [PATCH] Removed unused function --- src/controllers/pi_controller.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/controllers/pi_controller.cpp b/src/controllers/pi_controller.cpp index 3ffa598..44c603c 100644 --- a/src/controllers/pi_controller.cpp +++ b/src/controllers/pi_controller.cpp @@ -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)