eeros_architecture:sequencer:define_sequence
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| eeros_architecture:sequencer:define_sequence [2021/06/02 15:05] – [Define the Action] ursgraf | eeros_architecture:sequencer:define_sequence [2023/02/26 00:25] (current) – [Add Parameters] ursgraf | ||
|---|---|---|---|
| Line 68: | Line 68: | ||
| } | } | ||
| </ | </ | ||
| - | This guarantees that the sequence could be stopped by the main program | + | This guarantees that the sequence could be aborted, resumed or restarted | 
| ===== Define Preconditions ===== | ===== Define Preconditions ===== | ||
| You may want to start a sequence or step only if a certain precondition is met. Override the function // | You may want to start a sequence or step only if a certain precondition is met. Override the function // | ||
| Line 87: | Line 87: | ||
| <code cpp> | <code cpp> | ||
| int operator() (double x, double y) { | int operator() (double x, double y) { | ||
| - | this.x = x; // store the first parameter into a local variable for further use | + | this->x = x; // store the first parameter into a local variable for further use | 
| - | this.y = y; // store the second parameter into a local variable for further use | + | this->y = y; // store the second parameter into a local variable for further use | 
| return start(); | return start(); | ||
| } | } | ||
eeros_architecture/sequencer/define_sequence.1622639157.txt.gz · Last modified: 2021/06/02 15:05 by ursgraf
                
                