User Tools

Site Tools


coding_strategy_standard_for_state_machines

Differences

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

Link to this comparison view

coding_strategy_standard_for_state_machines [2017/08/18 18:02]
jgoeders [Example]
coding_strategy_standard_for_state_machines [2017/08/18 18:03] (current)
jgoeders [Requirements]
Line 96: Line 96:
 Please follow the template shown above. Please follow the template shown above.
   - State-update before state-action.   - State-update before state-action.
-  - You must declare a ''​currentState''​ variable ​and initialize it as part of the enum used to declare ​state enumerations. Use ''​currentState''​ as shown above.+  - You must declare a ''​currentState''​ variable as part of the enum state declaration. Use ''​currentState''​ as shown above.
   - Have an init function that initializes ''​currentState''​ and any other state variables.   - Have an init function that initializes ''​currentState''​ and any other state variables.
   - The state names used in the ''​enum''​ must be the same names as those used in your state diagrams.   - The state names used in the ''​enum''​ must be the same names as those used in your state diagrams.
coding_strategy_standard_for_state_machines.txt ยท Last modified: 2017/08/18 18:03 by jgoeders