Hello everyone
I'm trying to implement a time discrete controller in my simulation. For that I defined a PrescribedController and wrote a function that calculates the Controlleroutput every 40 ms. I redefine PrescribedControlForActuaters new with the new output after every calculation but it doesn't change the force applied by the actuators. Does anyone have any ideas how to solve this or on how to implement the controller?
Thank you in advance
implementation of time discrete controller
- Ben Sonnabend
- Posts: 5
- Joined: Wed Apr 24, 2024 12:27 pm
- Nicholas Bianco
- Posts: 1050
- Joined: Thu Oct 04, 2012 8:09 pm
Re: implementation of time discrete controller
Hi Ben,
Could you provide a minimal code snippet for what you have tried so far?
I think you should be able to use a PiecewiseConstantFunction for what you are trying to achieve.
Best,
Nick
Could you provide a minimal code snippet for what you have tried so far?
I think you should be able to use a PiecewiseConstantFunction for what you are trying to achieve.
Best,
Nick