1 If you have a Select command, you can right-click the appropriate dots and create constants as usual. 0 1 2 3 Receives cue Finishes moving Receives cue Receives cue Figure 12: State diagram for the state machine involved in this task.
- 11 - Module 1, LC 4 In state 3, the robot should play a tone to acknowledge receipt of your command to stop, and the program should end. State 3 should look like the figure below. Figure 13: "State 3" for the state machine discussed in this task. Activity: Create the state machine that adheres to these requirements. Demonstrate it to your instructor or TA. If your code isn’t behaving the way you think it should, it helps to check each state one at a time. Why waste time running through all the code that you know works? Save an alternate copy of your code, then delete the shift register and its wires. Wire a constant value (or Ring Constant) to the Case Structure and check each state individually using Highlight Execution. Deliverable To be completed in project teams: (1) Program at least the “skeleton” of your State Machine, and incorporate your pet’s locomotive behavior (the LC 3 deliverable!) into at least one appropriate state. The “skeleton” should allow for all of the state transitions in your State Diagram, but does not have to include all the features/coding that your final project will include. Demonstrate to an instructor or student assistant that your code works by running it in Highlight Execution mode, and by showing them all the pages of your Case Structure. To be completed individually: (2) Read the document for next week’s Learning Center and take the quiz on Concourse before midnight of the day before your Learning Center.
You've reached the end of your free preview.
Want to read all 11 pages?
- Fall '14
- Combo box