User Tools

Site Tools


eeros_architecture:sequencer:define_sequence

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
eeros_architecture:sequencer:define_sequence [2019/03/21 07:54] – [Write your own Class] grafeeros_architecture:sequencer:define_sequence [2020/09/30 08:06] – [Define the Action] ursgraf
Line 53: Line 53:
     step2();     step2();
     step3();     step3();
 +    return 0;
   }   }
 </code> </code>
-Its mandatory to implement this function. If not, no work is done and the step or sequence terminates immediately. \\+Its mandatory to implement this function. If not, no work is done and the step or sequence terminates immediately. The method can return a value, e.g.  \\
 There might be sequences which should never stop. This must be done as shown below: There might be sequences which should never stop. This must be done as shown below:
 <code cpp> <code cpp>
Line 62: Line 63:
     while (Sequencer::running) step1();     while (Sequencer::running) step1();
     // while (true) step1();  // WRONG!     // while (true) step1();  // WRONG!
 +    return 0;
   }   }
 </code> </code>
eeros_architecture/sequencer/define_sequence.txt · Last modified: 2023/02/26 00:25 by ursgraf