1 / 5

Unit 9 – “A BIG State Machine”

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.

Download Presentation

Unit 9 – “A BIG State Machine”

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Unit 9 – “A BIG State Machine”

  2. Introduction • New Topics • Nested Case Structures • Reusable Code

  3. 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

  4. 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.

  5. Transitory States • States which go immediately from one state to the next Transitory State

More Related