How to add new state value
Posted: Mon Dec 02, 2019 2:39 am
Hi, everyone.
I'm creating controller for simulation in MATLAB now. I want to store valuable for controller the state to use integrator. I used following function to store, however, value was not stored in Z which is auxiliary continuous state variables, because Z is empty matrix.
osimState.setZ(Vector(1, a)); or osimState.updZ().set(1, a);
Should I define subsystem to store valuable for controller?
If you know how to add or define new valuables to the state, please help me.
Best regards.
-yuta
I'm creating controller for simulation in MATLAB now. I want to store valuable for controller the state to use integrator. I used following function to store, however, value was not stored in Z which is auxiliary continuous state variables, because Z is empty matrix.
osimState.setZ(Vector(1, a)); or osimState.updZ().set(1, a);
Should I define subsystem to store valuable for controller?
If you know how to add or define new valuables to the state, please help me.
Best regards.
-yuta