-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Tesla: move safety out of debug #2285
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
base: master
Are you sure you want to change the base?
Conversation
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.
Still reviewing the steering checks, but here's comments so far.
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.
let's move RAD_TO_DEG
, ISO_LATERAL_ACCEL
, and anything else like EARTH out of here
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.
let's put our jerk limit in the constants file too and leave a comment that it's lower than ISO
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.
why is there a check for limits.inactive_angle_is_zero? should be constant within a safety mode
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.
standardize on chksum or checksum
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.
was TESLA_MAX_SPEED_DELTA verified with data?
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.
why is there a check for limits.inactive_angle_is_zero? should be constant within a safety mode
It was copied from the standard angle check function, the plan was to combine the two functions. But I think we should refactor the current angle function before doing that as it's way too big
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.
for brake press,
IBST_driverBrakeApply
has a fault state we should check
Usually, quality flags describe the signal they protect (ESP_wheelSpeedsQF
). That's a generic iBooster status that may or may not be relevant to driver brake press.
Edit: Ah, I see IBST_driverBrakeApply=FAULT
#2292
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.
pull out the invalid speed check, nothing in
modes/
should touch controls_allowed. these files are just parsers.
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.
tesla_steer_angle_cmd_checks
should be moved. again this file should essentially be a parser
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.
moved some constants: #2300
No description provided.