Design a finite state machine for an elevator. The elevator can be at one of two floors:
Fantastic news! We've Found the answer you've been seeking!
Question:
Design a finite state machine for an elevator. The elevator can be at one of two floors: first or second. There is two buttons that controls the elevator SW1 and SW2. Also, there are two lights in the elevator that indicate the current floor: Red for first floor, and blue for second floor. At each time step, the controller checks the current floor and current input, changes floors and lights in the obvious way.
Related Book For
Vector Mechanics for Engineers Statics and Dynamics
ISBN: 978-0073398242
11th edition
Authors: Ferdinand Beer, E. Russell Johnston Jr., David Mazurek, Phillip Cornwell, Brian Self
Posted Date: