Skip to content

Commit

Permalink
BF: Basics of closed-loop control #1046
Browse files Browse the repository at this point in the history
  • Loading branch information
amesin13 committed Dec 6, 2024
1 parent ad192ed commit 6ff04d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions 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 @@ -149,7 +149,7 @@ def _compute_output(self, p_ctrl_error: ControlError, p_ctrl_var: ActionElement)
"""

#get control error
control_error_siso = p_ctrl_error._get_values()[0]
control_error_siso = p_ctrl_error.values[0]

#time delta
dt = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def _compute_reward(self, p_state_old: ControlledVariable = None, p_state_new: C
T = 5
T_l = 0.1
cycle_limit = int(3*T/T_l)*10
cycle_limit = 500
if __name__ == '__main__':
# 2.1 Parameters for demo mode
cycle_limit = cycle_limit
Expand Down

0 comments on commit 6ff04d2

Please sign in to comment.