Skip to content

Helpful Commits

sshane edited this page Oct 1, 2021 · 25 revisions

Allow Gas Press

With this commit, you can enable gas press without disengaging. The unsafe_mode setting has changed in 0.7.9/0.7.10 so here's what works now.

This method of setting unsafe_mode is completely endorsed by comma and doesn't require changing any panda firmware code which is strongly discouraged.

Support Grey (and White) Panda on 0.8.2+

Simply cherry-pick this commit to revert all changes that make the grey and white pandas unsupported. This commit was done on the devel branch of openpilot, so any non-master branch should cherry-pick in a breeze (master should too, but tests may no longer work).

Adjustable Following Distance

Here is how you can add adjustable TR support to your fork: https://github.com/ShaneSmiskol/openpilot-archive/commit/814176baecb35200cc82693ad84af082d119199c

Just git cherry-pick it! Of course you need to modify the line in long_mpc.py to include a TR and optionally (but recommended) adjust the distance cost.

The line to adjust, simply add a float following distance as an extra argument.


How To Cherry Pick These Commits

  1. Assuming you're on another/your own fork, you'll need to fetch my repository in order for git to cherry pick my commits. For me, this operation uses ~200MB on top of commaai/openpilot.
    git remote add shanesmiskol https://github.com/ShaneSmiskol/openpilot
    git fetch shanesmiskol
  2. Now that you fetched my repository locally, you can use the git cherry-pick command on any commit here! If you're lucky and there are no merge conflicts, simply push; a merge commit has already been made. Else, resolve the conflicts and commit and push!
Clone this wiki locally