-
Notifications
You must be signed in to change notification settings - Fork 14.6k
safety: allow for level logic in safety switch #25156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🔎 FLASH Analysispx4_fmu-v5x [Total VM Diff: 192 byte (0.01 %)]
px4_fmu-v6x [Total VM Diff: 240 byte (0.01 %)]
Updated: 2025-07-04T16:10:06 |
ae9539c
to
50652ac
Compare
50652ac
to
8cecaca
Compare
Should also test with a CAN GPS |
|
||
button_event_s button_event; | ||
|
||
while (_safety_button_sub.update(&button_event)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upper bound on loops just to be paranoid.
I like the idea of optionally exposing GPIO events as publications. If used beyond this instead of |
This pull request has been closed after being marked as stale with no further activity. Thank you for the time and effort you put into this contribution. If you’d like to continue the discussion or update the work, please feel free to reopen it or submit a new PR. |
Solved Problem
The safety button system currently only allows for a button that disables the safety when pressed for one second. For some usecases it can be practical to have a level based switch instead of this pulse style switch.
Solution
Changelog Entry
For release notes:
Test coverage