Implement door safety monitor #33

Merged
sebgab merged 4 commits from safety_monitor into main 2026-03-08 12:35:26 +00:00
Owner

Imeplements a runtime safety monitor that crashes the elevator program on an illegal condition.

Imeplements a runtime safety monitor that crashes the elevator program on an illegal condition.
Implement door safety monitor
Some checks failed
/ build_and_test (push) Failing after 23s
/ Static Release Build (push) Has been skipped
4ca51ee9cb
Only error and ignore request to close door when obstructed
Some checks failed
/ Static Release Build (push) Has been cancelled
/ build_and_test (push) Has been cancelled
de2b210dc2
Mark tests trying to close the door while obstructed as should panic
All checks were successful
/ build_and_test (push) Successful in 25s
/ Static Release Build (push) Has been skipped
e956341d80
Merge branch 'main' into safety_monitor
All checks were successful
/ build_and_test (push) Successful in 25s
/ Static Release Build (push) Has been skipped
6ff3aca828
@ -0,0 +24,4 @@
// Enforce that the door cannot be open while the elevator is moving
assert!(!(door_open && is_moving));
// Door not closing while obstructed is enforced in the `close_door` function
Owner

non blocking: feels like a comment just randomly placed

non blocking: feels like a comment just randomly placed
Author
Owner

Moved to doccomment.

Moved to doccomment.
sebgab marked this conversation as resolved
Athamantis approved these changes 2026-03-08 12:34:58 +00:00
Athamantis left a comment
Owner

lgtm

lgtm
sebgab merged commit 7370c48b3c into main 2026-03-08 12:35:26 +00:00
sebgab deleted branch safety_monitor 2026-03-08 12:35:26 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 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!33
No description provided.