This project was a part of the course TTK4235 - Embedded Systems at NTNU.
This software is designed to control a single elevator across n
floors. The software reads inputs from buttons, just like a normal elevator and commands the elevator to take action. It is spesifically designed for the hardware on the NTNU real-time lab elevators, but a simulator is also provided.
The underlying design is based on a simple state machine structure
- To use with the simulator, set
SIM=true
in Makefile and build usingmake
. - Run
./SimElevatorServer
binary to start the simulator. - Run
./elevator
binary to run the controller code.
- Up: QWE
- Down: ASD
- Cab: ZXCV