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
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.
Step by Step Solution
3.30 Rating (147 Votes )
There are 3 Steps involved in it
State Floor Input SW 1 SW 2 ... View full answer
Get step-by-step solutions from verified subject matter experts
