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

GM: Car Port for XT4 2023 #30420

Closed
wants to merge 1 commit into from
Closed

Conversation

garrettpall
Copy link
Contributor

@garrettpall garrettpall commented Nov 9, 2023

Car
Cadillac XT4 2023

Route
162796f1469f2f1b/00000005--6f334eda14

Checklist

  • added entry to CarInfo in selfdrive/car/*/values.py and ran selfdrive/car/docs.py to generate new docs
  • test route added to routes.py
  • route with openpilot: 162796f1469f2f1b/00000005--6f334eda14
  • route with stock system: 162796f1469f2f1b/00000003--79f5d5854f (old harness design)
  • car harness used (if comma doesn't sell it, put N/A): N/A

Copy link
Contributor

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

@github-actions github-actions bot added the stale label Dec 18, 2023
@garrettpall garrettpall reopened this Dec 21, 2023
@github-actions github-actions bot added the car vehicle-specific label Dec 21, 2023
@garrettpall
Copy link
Contributor Author

garrettpall commented Dec 21, 2023

Panda and Openpilot PR rebased 12/21. Have not tested yet, but will once requested. This Car Port requires a new harness to be made.

image

Mouser #: Mfr. #: Desc.: Order Qty.
571-1-1703930-1 "1-1703930-1" Automotive Connectors NANOMQS 20
571-2309644-4 "2309644-4" Automotive Connectors Automotive Connectors 30P NANOMQS/US050 LL CONN, W/CPA, KEY D 1
571-2236905-1 "2236905-1" Automotive Connectors Automotive Connectors NANO TAB 0.5X0.4,TERMINAL 20

@github-actions github-actions bot removed the stale label Dec 22, 2023
@garrettpall
Copy link
Contributor Author

This PR would also support adding the 2019 Chevy Volt as a supported car.

@garrettpall
Copy link
Contributor Author

@adeebshihadeh
Copy link
Contributor

How does the harness work on this car? Does it require unplugging the ASCM like the currently supported Volts or is this a normal setup (i.e. does it completely fall back to the stock system if the C3X is unplugged)?

@garrettpall
Copy link
Contributor Author

@adeebshihadeh The ASCM does not get unplugged/bypassed and AEB is retained. This means longitudinal support is with the stock ACC system. The harness only intercepts the powertrain bus at the SDGM (serial data gateway module) under the dash above the obd port as the camera only has the object bus.

@garrettpall
Copy link
Contributor Author

garrettpall commented Feb 1, 2024

This port is confirmed working on a 2022 Chinese Buick baby enclave (Envision-ish) too with fingerprint forced to XT4.

Copy link
Contributor

github-actions bot commented May 18, 2024

Thanks for contributing to openpilot! 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
    • the change is something we merge
    • include a route or your device' dongle ID if relevant

@garrettpall garrettpall marked this pull request as ready for review May 18, 2024 10:19
@garrettpall garrettpall force-pushed the xt4-port branch 3 times, most recently from 99b8af1 to 82ada7b Compare May 18, 2024 23:13
@garrettpall garrettpall force-pushed the xt4-port branch 3 times, most recently from 4cc438d to 7a42e47 Compare June 16, 2024 19:45
@garrettpall
Copy link
Contributor Author

So far only the XT4 has a steering cutoff of 30 mph. Every other SDGM car has been 6 mph

@jyoung8607 jyoung8607 added the gm label Jul 3, 2024
@garrettpall
Copy link
Contributor Author

I think I found a way to make the SDGM port almost identical to the CAM car port. Just need a harness wiring change that I will test this weekend.

W/ New Harness Design
@garrettpall
Copy link
Contributor Author

I have tested the new harness design and updated this PR. I currently have chassis hooked up to bus 1 in my car to gather data on brake messages, but will be switching to object soon. I recommend object be connected to bus 1 for future use (ie. possibility of corner radar points and front radar point to support a SDSU type hardware to get op longitudinal support).

Not only does this new harness slim down the port even more, but it also removes the comma from the middle of the main PT bus.

Harness can be seen here: https://github.com/garrettpall/GMSDGMConnector

@sshane
Copy link
Contributor

sshane commented Aug 20, 2024

We've moved the car interfacing code to our opendbc repository, which is now the new home for car ports and fingerprints. Please re-open your pull request against opendbc at your convenience by using this command below. This will transform all changes under selfdrive/car/ to opendbc_repo/opendbc/car/. Make sure you have initialized submodules beforehand and have checked out the latest opendbc commit.

PR_NUMBER=33045
curl -L https://github.com/commaai/openpilot/pull/$PR_NUMBER.patch | sed -e 's/selfdrive\/car/opendbc_repo\/opendbc\/car/g' | git apply -v --reject

Simply replace the PR number with your own. Once done, add the files, fix any conflicts, and open a new PR. Alternatively, you may start a new PR from scratch if that is easier for you.

@sshane sshane closed this Aug 20, 2024
@garrettpall garrettpall deleted the xt4-port branch September 5, 2024 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
car port car vehicle-specific gm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants