Datasheet

Chapter 4: Navigation Tips · Page 175
Figure 4-11 Hybrid State Machine Diagram
Compare Figure 4-11 to the Main Routine from FrontIrNavigation.bs2 and
verify that they describe the same state transitions.
State diagrams are not a replacement for flowcharts. While state diagrams introduced in
this activity provide an overview of states in a state machine design, flow charts provide a
detailed visual description of what the code in a program does. Flowcharts are introduced in
the Stamps in Class Industrial Control text, available for download from www.parallax.com.
The NOT(irLF = 1 AND irRF = 1) conditions are taken care of implicitly by DO UNTIL
(irLF = AND irRF = 1).