Elevator Simulation
A simulation to understand the lift control system, implemented using a simple algorithm:
- Start going in the direction of the first button pressed, keep track of which direction we're going
- When a floor is reached and that button was pressed, stop and open the doors, mark the buttons for this floor as not pressed anymore.
-
- If there are still more floors that we need to visit that are in the same direction, keep going in that direction.
- If not and there are still floors we need to visit, move in that direction.
- If not then we're done and will start at 1 when a button is pressed again.
Simulation Control Buttons:
Floor Buttons: Each of the four floors has 2 buttons, one to go up and the other to go down.
Carriage Buttons: The carriage/lift has a keypad containing 4 buttons for each floor.
Lift Speed: A slider to control the speed of the lift.
Status | In development |
Category | Tool |
Platforms | HTML5 |
Author | sankalp2520 |
Made with | Unity |
Leave a comment
Log in with itch.io to leave a comment.