eeros_architecture:sequencer:sequence
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
eeros_architecture:sequencer:sequence [2019/03/21 07:51] – [Simple Example] graf | eeros_architecture:sequencer:sequence [2024/12/01 11:50] (current) – [Waiting for Sequences to Finish] ursgraf | ||
---|---|---|---|
Line 33: | Line 33: | ||
int action() { | int action() { | ||
robot.setValue(xPos, | robot.setValue(xPos, | ||
+ | return 0; | ||
} | } | ||
bool checkExitCondition() { | bool checkExitCondition() { | ||
Line 47: | Line 48: | ||
robot.moveXY(15, | robot.moveXY(15, | ||
robot.moveXY(22, | robot.moveXY(22, | ||
+ | return 0; | ||
} | } | ||
private: | private: | ||
Line 56: | Line 58: | ||
===== Waiting for Sequences to Finish ===== | ===== Waiting for Sequences to Finish ===== | ||
- | Usually at some stage in your program you have to wait for a given sequence to finish until the program should continue. | + | Usually at some stage in your program you have to wait for a given sequence to finish until the program should continue. |
- | The former waits for a given sequence to finish running. It returns as soon as all the steps defined in the sequence have completed running. | + | This method |
- | On the other hand, '' | + | |
- | IMPORTANT Never use '' | + | |
eeros_architecture/sequencer/sequence.1553151074.txt.gz · Last modified: 2019/03/21 07:51 by graf