pySimBlocks.core.fixed_time_manager

class pySimBlocks.core.fixed_time_manager.FixedStepTimeManager(dt_base: float, sample_times: list[float])[source]

Bases: object

Time manager for fixed-step simulations.

Handles multiple sample times by ensuring they are all integer multiples of the base time step.

dt

Base time step in seconds.

next_dt(t: float) float[source]

Return the next time step.

Parameters:

t – Current simulation time in seconds.

Returns:

The base time step dt (always fixed).