User Tools

Site Tools


eeros_architecture:control_system:available_blocks:step

Step

The step block delivers a step function on its output. The following lines show various examples.

Step<Vector2> s1({0.2, 2.5, 3.5});

The first parameter is the initial value, that is, the output value before the step happens. The second parameter denotes the step height while the third gives the time delay after which the step function happens. In our example, the output value will switch to 2.7 after 3.5s.

If a Step block is declared without parameters, the default parameters of step(0.0, 1.0, 0.0) will be used. The reset function allows to rerun the step function.

s1.reset();
eeros_architecture/control_system/available_blocks/step.txt · Last modified: 2021/05/16 14:29 by ursgraf