Skip to content

Releases: aalexjo/TTK4145-RTP

Factory Admission Test, v1

Choose a tag to compare

@aalexjo aalexjo released this 16 Apr 12:54
9eb5750

This release is for the factory admission test in the elevator project.

In order to run both main and hall_request_assigner must be in the same directory, a status.txt file will be generated here as well. For a clean initialization ElevatorServer must be run first. For proper restarts it must be run run from the host computer and not remotly.

In order to assign each elevator with a unique ID use the flag -id=, if you with to use a simulator the port can be adjusted using -port=#####. Note that when using a simulator error handling does not function properly.

Features:
-support for 4 floors and any number of elevators
-Acknowledge module that guarantees all other connected elevators receive orders
-Simultaneous lighting, once an order is accepted all other elevators turn on their light
-Dynamic elevator support, elevators can come on and off the network and still operate individually or as a unit without restarting while still guaranteeing that every order is executed at least once.
-Error handling. The program automatically restarts if an error is detected and not handled, it will restart in the same state as when it crashed so unexpected events such as arriving at >4 floors should not occur.