opendbc icon indicating copy to clipboard operation
opendbc copied to clipboard

Honda: Add support for 2018 Honda N-Box

Open miettal opened this issue 1 year ago • 10 comments

miettal avatar Aug 17 '24 16:08 miettal

Thanks for contributing to opendbc! In order for us to review your PR as quickly as possible, check the following:

  • Convert your PR to a draft unless it's ready to review
  • Read the contributing docs
  • Before marking as "ready for review", ensure:
    • the goal is clearly stated in the description
    • all the tests are passing
    • include a route or your device' dongle ID if relevant

github-actions[bot] avatar Aug 18 '24 09:08 github-actions[bot]

rebased

miettal avatar Oct 02 '24 14:10 miettal

Thank you for the PR! At a glance it looks good, except we do need a CI test route. Can you share a route that you don't mind making public, for automated testing purposes? We just need 5-10 minutes of driving with some openpilot engagement. For your privacy, this route shouldn't start or end at your home or workplace. Be sure to upload logs from comma connect.

jyoung8607 avatar Oct 02 '24 20:10 jyoung8607

This PR has had no activity for 9 days. It will be automatically closed in 2 days if there is no activity.

github-actions[bot] avatar Nov 18 '24 02:11 github-actions[bot]

OK, I will add test driving.

miettal avatar Nov 18 '24 03:11 miettal

@jyoung8607 I uploaded n-box test driving route and added it as test route to code.

miettal avatar Dec 28 '24 13:12 miettal

@jyoung8607 I uploaded n-box test driving route and added it as test route to code.

It looks like rlogs aren't uploaded for that route. Can you upload those logs, or replace the route with one that does have logs uploaded? Your device will need to be on Wi-Fi, and then in comma connect, click on the route you want to upload, and select Files->Upload (all logs). Then, enable More info->Public access and More info->Preserved.

jyoung8607 avatar Dec 29 '24 20:12 jyoung8607

@jyoung8607 Sorry, I only uploaded camera data. Now I upload all data to comma connect. Could you check this?

miettal avatar Dec 29 '24 23:12 miettal

@jyoung8607 Sorry, I only uploaded camera data. Now I upload all data to comma connect. Could you check this?

Yes, I see your data uploaded, thank you. I will review it soon.

jyoung8607 avatar Dec 31 '24 20:12 jyoung8607

CI tests aren't passing due to a syntax error on your most recent change. I'm setting your PR to Draft, once that's fixed you can remove it from Draft.

jyoung8607 avatar Mar 12 '25 02:03 jyoung8607

@miettal Can you test this updated code on your car?

jyoung8607 avatar Jul 22 '25 18:07 jyoung8607

@jyoung8607 which version openpilot should I ise PXL_20250723_144800405.jpg

miettal avatar Jul 23 '25 14:07 miettal

@jyoung8607 I tested current branch on 414af83891dbf72c/00000008--a634d20a68. This branch work.

miettal avatar Jul 23 '25 17:07 miettal

Hello @miettal,

Thank you for your patience. We've learned some important things recently from merging support for other Hondas, and I'd like your help with a couple more tests.

First, we need a dashcam-mode route showing your stock LKA system working. Just set the "openpilot enabled" toggle to off, turn on your stock LKA system, and record it controlling your steering during some lane departures. I think the current values of lateralParams.torqueBP and lateralParams.torqueV are probably wrong, and this will tell us the correct values. When you're done, upload logs and let me know the route ID as you've done before.

Once we have a dashcam-mode route, I'll update this branch with some improved lateral control parameters, and have you test to make sure that works well. That's the last thing we should need to merge.

jyoung8607 avatar Aug 13 '25 05:08 jyoung8607

@jyoung8607 OK, no problem, I will do it. Thank you for huge refactoring and migration!!

miettal avatar Aug 13 '25 05:08 miettal

@jyoung8607 here 414af83891dbf72c/0000000d--582a030f1f/0

miettal avatar Aug 20 '25 15:08 miettal

@jyoung8607 here 414af83891dbf72c/0000000d--582a030f1f/0

Thank you, this was helpful. Can you try driving on the most current changes in this PR?

I've made a testing branch that you can use: reinstall using custom shortcut commaai/honda-testing.

It's helpful for testing/calibration if your hands are not on the steering wheel while openpilot is engaged. You can always override or take back control if you need to, but we don't really know how your car responds to torque control if we're trying to move your hands as well.

jyoung8607 avatar Aug 21 '25 16:08 jyoung8607

I tested, but controll reaction is very slow.

414af83891dbf72c/00000001--44dfd9fbac

miettal avatar Sep 08 '25 21:09 miettal

BTW, my connect page was in "Loading..." forever... Console show javascript error, but I'm no sure this is related to forever loading. Screenshot 2025-09-09 at 6 30 29

miettal avatar Sep 08 '25 21:09 miettal

I tested, but controll reaction is very slow.

414af83891dbf72c/00000001--44dfd9fbac

Yes, looking at your logs, I agree that control wasn't very good. I've switched N-Box back to its original tuning.

Thank you for the PR!

jyoung8607 avatar Sep 11 '25 10:09 jyoung8607