Skip to content
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

Subaru: LKAS Angle based car safety #1533

Closed
wants to merge 17 commits into from
Closed

Conversation

jnewb1
Copy link
Contributor

@jnewb1 jnewb1 commented Jul 27, 2023

We have so far verified that the 2022 forester and 23 outback use an angle-request based LKAS message.

22 forester is similar to gen1, where everything we care about is on bus0/2
23 outback is similar to gen2, where some messages are on bus1

@jnewb1 jnewb1 marked this pull request as ready for review August 7, 2023 16:53
@jnewb1 jnewb1 requested a review from adeebshihadeh August 11, 2023 06:33
@jnewb1
Copy link
Contributor Author

jnewb1 commented Aug 11, 2023

These cars will start in dashcam mode, hence behind allow_debug.

@jnewb1 jnewb1 force-pushed the outback-forester-22-PR branch from ba2f9a9 to f342752 Compare October 24, 2023 17:27
@jnewb1 jnewb1 removed the request for review from adeebshihadeh October 24, 2023 20:09
@jnewb1
Copy link
Contributor Author

jnewb1 commented Oct 24, 2023

@sshane

  • behind the allow_debug flag
  • reduced to two breakpoints like ford

anything else?

Comment on lines +26 to +27
{0., 15., 15.},
{5., .8, .8}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the case of wheel speed sensor failure, we made the lower limit not exceed ISO limits at ~75 mph for Ford, does this do that, assuming a standard steering ratio?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is taken from nissan which has the same units. have a good way to test this from data? these car's will also only be in dashcam mode

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use the vehicle model

board/safety/safety_subaru.h Outdated Show resolved Hide resolved
board/safety/safety_subaru.h Outdated Show resolved Hide resolved
board/safety/safety_subaru.h Outdated Show resolved Hide resolved
@jnewb1 jnewb1 closed this Apr 25, 2024
@sshane sshane reopened this Feb 4, 2025
@sshane
Copy link
Contributor

sshane commented Feb 20, 2025

We've moved the car safety code into opendbc, please rebase and re-open your PR there!

@sshane sshane closed this Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
car safety vehicle-specific safety code enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants