implementation of time discrete controller

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Ben Sonnabend
Posts: 5
Joined: Wed Apr 24, 2024 12:27 pm

implementation of time discrete controller

Post by Ben Sonnabend » Tue May 21, 2024 12:44 pm

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

Tags:

User avatar
Nicholas Bianco
Posts: 1050
Joined: Thu Oct 04, 2012 8:09 pm

Re: implementation of time discrete controller

Post by Nicholas Bianco » Tue May 28, 2024 10:51 pm

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

POST REPLY