-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
safety: fwd hook config #1954
base: master
Are you sure you want to change the base?
safety: fwd hook config #1954
Conversation
blockers:
|
@@ -49,8 +52,14 @@ typedef struct { | |||
int addr; | |||
int bus; | |||
int len; | |||
bool blocked; |
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.
bool blocked; | |
bool block_fwding; // or no_fwding |
makes this more clear
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.
Looks great!
opendbc/safety/safety_declarations.h
Outdated
@@ -151,6 +160,7 @@ typedef struct { | |||
int rx_checks_len; | |||
const CanMsg *tx_msgs; | |||
int tx_msgs_len; | |||
bool block_fwding; |
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.
I'd call this enable_forwarding
or disable_forwarding
* Do Toyota relay malfunction config * clean up * not needed * rm this * rm * fix * great name (rename after #1954) * do gm * need this since we will dynamically block it * subie * some more brands * Ford * Chrysler * Hyundai * huge oof hyundai * toyota & vw * fix * tesla * 0x194 isn't on Honda Bosch * Honda: we can check bus 1 for 0xe4 * misra * static * ugh need this * correct * nl * like * space
* Do Toyota relay malfunction config * clean up * not needed * rm this * rm * fix * great name (rename after commaai#1954) * do gm * need this since we will dynamically block it * subie * some more brands * Ford * Chrysler * Hyundai * huge oof hyundai * toyota & vw * fix * tesla * 0x194 isn't on Honda Bosch * Honda: we can check bus 1 for 0xe4 * misra * static * ugh need this * correct * nl * like * space
da484a8
to
0753240
Compare
Closes #1950
v2 of #1785
removes turing completeness
haven't checked all cases, but we might be able to just do the relay malfunction part of #1903 with nothing more than
blocked
and a few more lines (plus checking a bunch more addresses automatically)!