Page 1 of 1

implementation of time discrete controller

Posted: Tue May 21, 2024 12:44 pm
by ben_snbd_2002
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

Re: implementation of time discrete controller

Posted: Tue May 28, 2024 10:51 pm
by nbianco
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