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

Honda: Car Port Acura Integra #1722

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

vanillagorillaa
Copy link
Contributor

@vanillagorillaa vanillagorillaa commented Feb 15, 2025

Checklist

  • added entry to CarInfo in selfdrive/car/*/values.py and ran selfdrive/car/docs.py to generate new docs Done by bot now?
  • test route added to routes.py
  • route with openpilot: 3f8ae015ce70365f/00000003--a22590d0e4
  • harness Type: Bosch B

Requires

@github-actions github-actions bot added car related to opendbc/car/ honda labels Feb 15, 2025
@vanillagorillaa vanillagorillaa marked this pull request as ready for review February 17, 2025 22:19
@github-actions github-actions bot added the car safety vehicle-specific safety code label Feb 21, 2025
Copy link
Collaborator

@jyoung8607 jyoung8607 left a comment

Choose a reason for hiding this comment

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

The under-2kmh speed issue is annoying. I see how you're trying to solve it, and while I'm not in love with your solution, I looked in Cabana myself for a bit and I'm not sure I see a better one.

I'm curious how stock deals with it. What's the control envelope for the factory camera-based ACC? Will it slow to a stop, and if so, will it resume? Does openpilot longitudinal control work?

Comment on lines +84 to +85
// 0x158 used for all suported Hondas except Integra (use 0x309 car_speed message)
if ((addr == 0x158) || (addr == 0x309)){
Copy link
Collaborator

Choose a reason for hiding this comment

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

The 0x309 case and its corresponding RxCheck aren't exercised in tests. I'm not sure we can depend on it anyway, so it may be irrelevant.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will leave for the moment. Maybe we can find another message for speed

Comment on lines +139 to +140
if self.CP.carFingerprint == CAR.ACURA_INTEGRA:
ret.standstill = cp.vl["CAR_SPEED"]["CAR_SPEED"] < 1e-5
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm definitely not in love with this message, it's almost certainly intended for instrument cluster display. Low frequency, high arb ID, and has a considerable response lag.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can take another look to see what we have, or can use

Copy link
Collaborator

Choose a reason for hiding this comment

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

In a pinch, there's a message that has ABS wheel speed sensor impulse integral, and that doesn't have the 2 kmh cutoff. We'd have to calibrate it against the main reference speed, but there's precedent and support for briefly suppressing engagement for steering angle sensor calibration and the like.

The reason I asked about stock ACC is that I'd be surprised if it does FtS/SnG if its own reference source has the 2kmh cutoff.

@jyoung8607 jyoung8607 self-assigned this Mar 11, 2025
@jyoung8607 jyoung8607 marked this pull request as draft March 11, 2025 20:50
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 car related to opendbc/car/ honda
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants