Skip to content

Commit

Permalink
BF: PID Controller (SISO) #1048
Browse files Browse the repository at this point in the history
  • Loading branch information
amesin13 committed Sep 10, 2024
1 parent 0048f8b commit a8d73f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mlpro/bf/control/controllers/pid_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def _compute_action(self, p_ctrl_error: CTRLError, p_action_element: ActionEleme

# anti - windup
if self.enable_windup and self.windup_limit is not None:
self._integral = max(min(self._integral, self.windup_limit), -self.windup_limit)
self.integral = max(min(self.integral, self.windup_limit), -self.windup_limit)

#calculate i term , if Ti not zero
if self.Ti != 0:
Expand Down

0 comments on commit a8d73f2

Please sign in to comment.