open-simulation-platform / libcosim

OSP C++ co-simulation library
https://open-simulation-platform.github.io/libcosim
Mozilla Public License 2.0
61 stars 10 forks source link

Manipulators should get a current simulation time as an argument (for scenarios) #699

Open davidhjp01 opened 2 years ago

davidhjp01 commented 2 years ago

If an output of a scenario manipulator is time variant, we cannot accurately compute it because the manipulator function only accepts the delta time. For example, when the scenario event is set to trigger at t=5.5 but a user sets a step size of 1.

I suggest to pass the current simulation time to the manipulator functions to resolve this issue.