diff --git a/src/mlpro/bf/systems/pool/second_order_system.py b/src/mlpro/bf/systems/pool/second_order_system.py index 9863c035a..b02abeab7 100644 --- a/src/mlpro/bf/systems/pool/second_order_system.py +++ b/src/mlpro/bf/systems/pool/second_order_system.py @@ -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 @@ -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