Rasmoo
Mechanical
- Nov 26, 2013
- 2
Hey guys. Here is a short description of the issue:
I an integrating an acceleration twice to get the position of a valve spool. The position integral has an upper and lower limit to simulate the physical limits of the spool motion. However, the velocity integral experiences a kind of 'wind-up' when these position limits are hit, causing the velocity to keep building as long as the calculated acceleration is going in the same direction. When the acceleration then changes sign, the velocity will have to unwind before the spool moves again.
Obviously, the velocity must be reset to 0 and held there until the acceleration changes sign. However, this has proved quite difficult to do with the saturation and reset ports. Does anyone have a good idea of how to do this?
Thank you very much for your help.
I an integrating an acceleration twice to get the position of a valve spool. The position integral has an upper and lower limit to simulate the physical limits of the spool motion. However, the velocity integral experiences a kind of 'wind-up' when these position limits are hit, causing the velocity to keep building as long as the calculated acceleration is going in the same direction. When the acceleration then changes sign, the velocity will have to unwind before the spool moves again.
Obviously, the velocity must be reset to 0 and held there until the acceleration changes sign. However, this has proved quite difficult to do with the saturation and reset ports. Does anyone have a good idea of how to do this?
Thank you very much for your help.