-
-
Notifications
You must be signed in to change notification settings - Fork 87
Helpful Commits
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.
- Link: https://github.com/sshane/openpilot/commit/af0c4581784bcf6750e6d7a7d51ae5ad46d7585e
- Command:
git fetch https://github.com/sshane/openpilot support-grey-panda --depth 2 git cherry-pick af0c4581784bcf6750e6d7a7d51ae5ad46d7585e
In this version, the MPC library moved from ACADO to ACADOS, which is a much simpler library for writing MPCs, with everything defined in Python and compiled on-device. However this meant the previous method of changing the following distance was no longer valid, and the relatively safe costs found for each following distance no longer applicable.
The new costs tuned for this new MPC library are arbitrary at best, however it can pass all test_longitudinal.py tests down to 1.2 seconds, so that is what the desired TR is clipped to by default. This pick offers no warranty that your car will always brake in time, so as always, always pay attention!
Just cherry-pick this commit on branches with ACADOS.
- Link: https://github.com/sshane/openpilot/commit/41fc77f65b6718caa9830e206f8a01757da55157
- Commands:
git fetch https://github.com/sshane/openpilot acados-TR-support --depth 2 git cherry-pick 41fc77f65b6718caa9830e206f8a01757da55157
These picks may still work, but you will need to do extra work resolving conflicts on newer versions. They should still work on the versions posted however.
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).
- Link: https://github.com/sshane/openpilot/commit/0080c76ed5359b17c4e832760dc960d00d809070
- Command:
git cherry-pick 0080c76ed5359b17c4e832760dc960d00d809070
Here is how you can add adjustable TR support to your fork: https://github.com/sshane/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.
- 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 sshane https://github.com/sshane/openpilot git fetch sshane
- 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!