513
edits
No edit summary |
|||
Line 130: | Line 130: | ||
The internal structure of these functions is always the same: | The internal structure of these functions is always the same: | ||
1) conduct actions that fit to the particular state. (turn motors on / off, start a timer, ..) | 1) conduct actions that fit to the particular state. (turn motors on / off, start a timer, ..)<br> | ||
2) read input data (sensors, timer, ..) that provides information about the next possible state | 2) read input data (sensors, timer, ..) that provides information about the next possible state<br> | ||
3) decide the next state | 3) decide the next state | ||
edits