-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7cbd595
commit 420d3fb
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,9 @@ The elevator system only runs on Unix-like operating systems, and requires an in | |
|
||
[Simulator-v2](https://github.com/TTK4145/Simulator-v2) was used in development of this system, and is the recommended simulator to run the project. | ||
|
||
Install Simulator-v2 locally and follow the readme. If you are running macOS Sonoma, you will likely encounter a linker error when compiling the simulator using the command from the readme. A quick fix can be retreived from [here](https://forum.dlang.org/thread/[email protected]). | ||
Install Simulator-v2 locally by following the readme. If you are running macOS Sonoma, you will likely encounter a linker error when compiling the simulator using the command from the readme. A quick fix can be retreived from [here](https://forum.dlang.org/thread/[email protected]). | ||
|
||
To use Simulator-v2, see _Default keyboard controls_ from the [readme](https://github.com/TTK4145/Simulator-v2). | ||
|
||
Each elevator instance should be paired with an elevator-server (eg. simulator). This means connecting the elevator to the port of a server. | ||
|
||
|
@@ -22,7 +24,7 @@ Required flags to run the program are: | |
- -num: number of nodes (elevators) in the network. | ||
- -sport: which server-port the elevator should interface with. | ||
|
||
### Example: Starting a single elevator | ||
### Example | ||
|
||
Starting a 3-node elevator system should look something like this: | ||
|
||
|
@@ -44,8 +46,6 @@ go run elevator -id 1 -num 3 -sport {server2-port} | |
go run elevator -id 2 -num 3 -sport {server3-port} | ||
``` | ||
|
||
To use Simulator-v2, see [readme](https://github.com/TTK4145/Simulator-v2). | ||
|
||
## Program Notes | ||
|
||
The program contains an elevator-state object (elevState), which serves the purpose of triggering FSM-updates at correct time with correct inputs. | ||
|