The great cleanup #40

Merged
sebgab merged 30 commits from the-great-cleanup into main 2026-03-17 14:24:40 +00:00
Owner

While working on #38 I got annoyed at how messy the code structure is, so I finally got around to doing this...

While working on #38 I got annoyed at how messy the code structure is, so I finally got around to doing this...
The add call function in the call interface has a big where when adding
a call it cehcked if it has any call with teh same destination and
ignored the direction of the call.
Move tests into their respective files
All checks were successful
/ build_and_test (push) Successful in 30s
/ Static Release Build (push) Has been skipped
5a09d590bb
Fix all warnings, even from Clippy
All checks were successful
/ build_and_test (push) Successful in 30s
/ Static Release Build (push) Has been skipped
6b756a4ecd
Athamantis approved these changes 2026-03-16 10:40:18 +00:00
Athamantis left a comment
Owner

lgtm

lgtm
Hemmily approved these changes 2026-03-17 09:52:31 +00:00
sebgab changed title from The great cleanup to WIP: The great cleanup 2026-03-17 11:24:49 +00:00
Don't override handling elevator
All checks were successful
/ build_and_test (push) Successful in 2m10s
/ Static Release Build (push) Has been skipped
5d6020f6b6
Misc non-working changes, commited for reasons
All checks were successful
/ build_and_test (push) Successful in 2m18s
/ Static Release Build (push) Has been skipped
b51c648be0
Change from call mapping to elevator to the elevator mapping to call
All checks were successful
/ build_and_test (push) Successful in 35s
/ Static Release Build (push) Has been skipped
ff2e6a2d18
Previosly each call had a "handling_elevator" field, this has now been
removeed.
To compensate for this the elevator now has a field to track which call
it is currently handling.

Based on initial testing this fixes the issue where calls drop from the
network, I believe the main culprit behind this was due to the elevators
not being able to agree on who was handling each call.
With this change a call can be handled by multiple elevators at once,
even if that is not ideal behaviour in regards to efficiency.
Delete call based on currently serving ID
All checks were successful
/ build_and_test (push) Successful in 35s
/ Static Release Build (push) Has been skipped
60177b4968
Fix so elevators will serve calls that are not their own
All checks were successful
/ build_and_test (push) Successful in 35s
/ Static Release Build (push) Has been skipped
acf4b4e9c8
Merge branch 'main' into fix-sync-issue-two
All checks were successful
/ build_and_test (push) Successful in 38s
/ Static Release Build (push) Has been skipped
ae033625a7
Update assignment to use new call id functions
All checks were successful
/ build_and_test (push) Successful in 37s
/ Static Release Build (push) Has been skipped
bac1043421
Remove extraneous comments from development
All checks were successful
/ build_and_test (push) Successful in 38s
/ Static Release Build (push) Has been skipped
c92cb9167e
Remove extra comment
All checks were successful
/ build_and_test (push) Successful in 37s
/ Static Release Build (push) Has been skipped
2dcb396358
If the spec doesn't require it, don't do it
All checks were successful
/ build_and_test (push) Successful in 38s
/ Static Release Build (push) Has been skipped
b69071dbdb
The big typo fix
All checks were successful
/ build_and_test (push) Successful in 36s
/ Static Release Build (push) Has been skipped
5ebded3ce5
Merge pull request 'fix-sync-issue-two' (#41) from fix-sync-issue-two into the-great-cleanup
All checks were successful
/ build_and_test (push) Successful in 37s
/ Static Release Build (push) Has been skipped
671ddd6d9f
Reviewed-on: #41
Reviewed-by: Athamantis <athamantis@noreply@e1m1.xyz>
sebgab changed title from WIP: The great cleanup to The great cleanup 2026-03-17 14:24:32 +00:00
sebgab merged commit bb4fc4b955 into main 2026-03-17 14:24:40 +00:00
sebgab deleted branch the-great-cleanup 2026-03-17 14:24:40 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
TTK4145/elevator!40
No description provided.