Unit 9 – “A BIG State Machine”
Introduction New Topics Nested Case Structures Reusable Code
Nested Case Structures A nested case structure is when you have a case structure within a case structure This helps when dealing with multiple components such as sensors
Reusable Code Reusing code will help cut down the time it takes you to program and the length of your program In the state diagram shown we can see that the Stop Motor state can be reused multiple times.
Transitory States States which go immediately from one state to the next