Simscape - Ideal Rotational Motion Sensor Angular Acceleration?

5 Ansichten (letzte 30 Tage)
BMOC
BMOC am 2 Sep. 2020
Kommentiert: BMOC am 3 Sep. 2020
I am trying to use the block "ideal rotational motion sensor" in simscape for feedback in a control system. I need access to angular acceleration from the block but it only provides angular displacement and angular rate. I have tried taking the discrete derivative of the rate output, but it isn't coming out quite right, even with a low pass filter included as well.
Is there anyway to "hack" this block to obtain angular acceleration in a similar way to how you can get angle and rate?

Akzeptierte Antwort

Vasco Lenzi
Vasco Lenzi am 3 Sep. 2020
Hi there
I've a modified version of the sensor outputting the acceleration as well. Be careful that you may need to filter the speed input in order to make it differentiable - dpeending on how your system is setup. See in y model example how the Simulink-> PS converter needed to differentiate the input.
Attached the block and an example model. You can modify any SSC file using Simscape Language and then putting them into the model using the Simscape Component Block or build your own library using ssc_build (look it up in the documentation).
Hopefully this get you inspiration to start looking into Simscape Language! Is really fantastic for customization.
  1 Kommentar
BMOC
BMOC am 3 Sep. 2020
Thank you for this,
I figured there was a way to achieve this using the simscape language. Your example was clear and has been helpful!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Foundation and Custom Domains finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by