Skip to content

Commit

Permalink
BF: Controlled system PT2 #1085
Browse files Browse the repository at this point in the history
  • Loading branch information
amesin13 committed Nov 21, 2024
1 parent d2a35bd commit ee99ea5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mlpro/bf/systems/pool/second_order_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
## -- yyyy-mm-dd Ver. Auth. Description
## -- 2024-11-09 0.1.0 ASP Initial implementation class PT2
## -- 2024-11-10 0.2.0 ASP class PT2: update methods __init__(), _setup_spaces()
## -- 2024-11-16 0.3.0 ASP class PT2: update methods _simulate_reaction()
## - changed dt = p_step to dt = p_step.total_seconds()
## -------------------------------------------------------------------------------------------------

"""
Ver. 0.2.0 (2024-11-10)
Ver. 0.3.0 (2024-11-16)
This module provides a simple demo system that represent second order system.
Further infos : https://www.circuitbread.com/tutorials/second-order-systems-2-3
Expand Down Expand Up @@ -149,7 +151,7 @@ def _simulate_reaction(self, p_state: State, p_action: Action, p_step = None):
# get control Variable
u= p_action.get_elem(p_id=agent_id).get_values()[0]

dt=p_step
dt=p_step.total_seconds()

# Calculation RK4-Koeffizienten
k1_y = self._dy[self._cycle-1] * dt
Expand Down

0 comments on commit ee99ea5

Please sign in to comment.