Implement door safety monitor #33
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
priority
high
priority
low
priority
medium
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
TTK4145/elevator!33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "safety_monitor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imeplements a runtime safety monitor that crashes the elevator program on an illegal condition.
@ -0,0 +24,4 @@// Enforce that the door cannot be open while the elevator is movingassert!(!(door_open && is_moving));// Door not closing while obstructed is enforced in the `close_door` functionnon blocking: feels like a comment just randomly placed
Moved to doccomment.
lgtm