-
Notifications
You must be signed in to change notification settings - Fork 10k
Check for excessive lateral actuation #35700
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
card is car interfacing, controlsd is for calculating control input, selfdrived is rest
selfdrive/selfdrived/events.py
Outdated
@@ -758,6 +758,12 @@ def invalid_lkas_setting_alert(CP: car.CarParams, CS: car.CarState, sm: messagin | |||
ET.NO_ENTRY: NoEntryAlert("Distraction Level Too High"), | |||
}, | |||
|
|||
EventName.lateralIsoViolation: { |
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.
EventName.lateralIsoViolation: { | |
EventName.unreasonableLateralActuation: { |
EventName.lateralIsoViolation: { | |
EventName.abnormalLateralActuation: { |
?
@adeebshihadeh Here's 3 examples out of just 1000 random local segments where the user overrides above 2x ISO lateral accel limit while enabled. Do we want this to lock out for the rest of the drive?:
|
No I’d hope those look a lot different than the EV6 segment. |
We don't have any standard way of measuring jerk of a signal I can use as a reference, so I checked a few approaches. I added a script to plot different simple methods on the route from #35683. The low pass and the windowed methods can be noisy. Low pass is especially noisy if you update it at 100 Hz when livePose is 20 Hz, so you need to only update it when you get a livePose. Windowed and kalman filter is the most accurate, kalman filter is the smoothest.
Here's what 100 Hz low pass filter looks like:
|
Closes #35695