set_state_nic_nac #43

Merged
Athamantis merged 8 commits from set_state_nic_nac into main 2026-03-17 14:51:41 +00:00
Owner
No description provided.
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
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
make the set state await for obstruction
Some checks failed
/ build_and_test (push) Failing after 35s
/ Static Release Build (push) Has been skipped
ce55235be5
Athamantis changed title from set_state_nic_nac to WIP: set_state_nic_nac 2026-03-17 14:20:23 +00:00
remove prints
Some checks failed
/ build_and_test (push) Failing after 35s
/ Static Release Build (push) Has been skipped
5b28711f3f
remove prints v2
Some checks failed
/ build_and_test (push) Failing after 34s
/ Static Release Build (push) Has been skipped
d89ebac4a6
Athamantis changed title from WIP: set_state_nic_nac to set_state_nic_nac 2026-03-17 14:31:13 +00:00
fix tests
All checks were successful
/ build_and_test (push) Successful in 37s
/ Static Release Build (push) Has been skipped
174dcbdbce
remove the nice driver
All checks were successful
/ build_and_test (push) Successful in 36s
/ Static Release Build (push) Has been skipped
2e611831b0
sebgab approved these changes 2026-03-17 14:41:52 +00:00
Dismissed
@ -195,0 +198,4 @@
// Check if door is closed, and wait for it to be
wait_for_door_to_be_closed(system_state.clone(), &mut elevator.clone()).await;
// {
Owner

Delete commented out code?

Delete commented out code?
Author
Owner

fix in some commit

fix in some commit
Athamantis marked this conversation as resolved
remove uncommented code
All checks were successful
/ build_and_test (push) Successful in 37s
/ Static Release Build (push) Has been skipped
10a07e0412
Merge branch 'main' into set_state_nic_nac
All checks were successful
/ build_and_test (push) Successful in 36s
/ Static Release Build (push) Has been skipped
4ecc468580
sebgab requested review from sebgab 2026-03-17 14:46:06 +00:00
sebgab approved these changes 2026-03-17 14:47:47 +00:00
sebgab left a comment
Owner

imageimage

![image](/attachments/ccd3c622-edb6-4b81-89c5-13fffc16d5ce)![image](/attachments/a021977e-14d9-4620-8289-ef8ebf9e54e1)
Hemmily requested changes 2026-03-17 14:47:50 +00:00
Dismissed
@ -65,2 +65,2 @@
debug!(
"Current doorstate is {:?}. Received message: {:?}",
trace!(
"Current doorstate is {:?}. Recieved message: {:?}",
Owner

Received not recieved

Received not recieved
Owner

image
image

![image](/attachments/b1a7da12-e896-412a-a280-944d1c93d557) ![image](/attachments/6f864662-f4ce-4863-acd0-eb6ef3569e47)
Owner

image

![image](/attachments/aedd1554-154d-4e48-b38c-0facd1fb650e)
Athamantis marked this conversation as resolved
Received
All checks were successful
/ build_and_test (push) Successful in 38s
/ Static Release Build (push) Has been skipped
d1f612b304
Hemmily approved these changes 2026-03-17 14:51:09 +00:00
Hemmily left a comment
Owner

image
image

![image](/attachments/9b4eb27f-cc7e-407d-a611-e6138f9665ef) ![image](/attachments/867f0009-7a40-4bf7-9f71-0ae9f16fdfe2)
Athamantis deleted branch set_state_nic_nac 2026-03-17 14:51:41 +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!43
No description provided.