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

Add support for Holden/Opel Astra BK #431

Merged
merged 1 commit into from
Nov 21, 2018
Merged

Conversation

AlexHill
Copy link

Longitudinal and lateral control tested and working in @knackerbrot's Astra. The Astra BK uses the same platform as the Volt, so most of it works identically. I've added its fingerprint (with ASCM unplugged), set the mass, wheelbase, etc, and skipped the stuff relating to the absent regen paddle.

@AlexHill
Copy link
Author

("TractionControlOn", "ESPStatus", 0),
("EPBClosed", "EPBStatus", 0),
("CruiseMainOn", "ECMEngineStatus", 0),
("CruiseState", "AcceleratorPedal2", 0),
]
elif CP.carFingerprint == CAR.CADILLAC_CT6:
if CP.carFingerprint == CAR.CADILLAC_CT6:
Copy link
Contributor

Choose a reason for hiding this comment

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

not needed change

Copy link
Author

Choose a reason for hiding this comment

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

I made this change for consistency - what was previously just an if/elif is now more complicated due to the things in common between the Volt and the Astra. A series of plain ifs seem to capture it better since the cases aren't all mutually exclusive.

@rbiasini
Copy link
Contributor

looks great. Will merge after 0.5.6 gets released.

@AlexHill
Copy link
Author

Thanks for reviewing :)

@rbiasini
Copy link
Contributor

@AlexHill , pending conflicts resolution, this seems ready to be merged.

@AlexHill
Copy link
Author

Thanks @rbiasini. I just tried the Github web-based conflict resolution tool for the first time and broke something - I'll rebase when I get home.

self.regen_pressed = bool(pt_cp.vl["EBCMRegenPaddle"]['RegenPaddle'])
else:
self.regen_pressed = False
if self.car_fingerprint == CAR.CADILLAC_CT6:
Copy link
Contributor

Choose a reason for hiding this comment

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

wrong indent, 2 more spaces needed

@AlexHill
Copy link
Author

Ok, I think this is good to go now.

@rbiasini rbiasini merged commit c9dd7fe into commaai:devel Nov 21, 2018
adhintz added a commit to adhintz/openpilot that referenced this pull request Dec 18, 2018
* GM: remove refactor leftovers (commaai#440)

* Move calibration values (commaai#441)

* initial commit

* moved constants

* Keep steering on radar fault (commaai#442)

* Add initial support for Holden/Opel Astra BK (commaai#431)

* Added Astra support to README and RELEASE notes (commaai#443)

* Honda Nidec: avoid giraffe setting alert when car is turned off (commaai#449)

* Adding support for 2018 GMC Acadia Denali (commaai#453)

* added acadia

* adding acadia

* adding acadia

* Update radar_interface.py

* adding acadia

* refactored

* fixed tuning

* Adding acadia

* Update interface.py

* fixed whitespace

* fixed whitespace

* ACC cancel button

* GM: Cadillac ATS Coupe 2018 support (commaai#445)

* GM: Cadillac ATS Coupe 2018 support

* Missed adding Cadillac ATS

* Fixed Capitalization + Made CT6 Comment Cleaner (commaai#456)

* Update README.md

* Updated CT6 comment

* Add Lexus RX450HL as sub to RX450H (commaai#458)

Add Lexus RX450HL as sub to RX450H

* on gas pedal press, send cancel ACC button to cancel OpenPilot

* try sending +1 counter so our message isn't a duplicate

* only do the accel pedal for specific cars

* do accel pedal for all models

* try always sending 1 for cancel acc frame

* clean up comments and remove unused moving_fast

* remove unused make can msg parameters

* try incrementing wheel button counter by 2 to see if that works better for cancel

* Squashed 'opendbc/' changes from 3f6cd74..e108b6b

e108b6b Add more Sign recognitions (commaai#126)
6e8a363 Add GM FCW Alert (Take 2) (commaai#125)
368701a Revert "Add GM FCW dashboard alert (commaai#123)" (commaai#124)
98b5f66 Add GM FCW dashboard alert (commaai#123)
71b7588 Adds dbc for 2019 Honda Insight (commaai#122)

git-subtree-dir: opendbc
git-subtree-split: e108b6b

* Squashed 'pyextra/' changes from fb152de..8cc1594

8cc1594 update overpy
2c18997 switch to forked version of overpy

git-subtree-dir: pyextra
git-subtree-split: 8cc1594238fcae6acb8bcd825ac73bbca586b1be

* openpilot v0.5.7 release

* try to simplify message logic

* clean up code

* move Chrylser into main table in readme

* 0.5.7 hotfixes

* On pedal press, if in steer error state, do not send ACC cancel button message.
Sending the ACC cancel button message in this state causes the car to display warnings.

* set the new ret.openpilotLongitudinalControl = False

* hotfix: wait longer in CDP mode before switching to fast charge, so EON can boot (commaai#469)

* generalize jeep fingerprint to also cover 2017 Jeep Grand Cherokee Trailhawk

* disable pedal_gas for now to do a devel release. Sending 23b might fault other cars.

* add jeep grand cherokee 2017 to readme car list
adhintz added a commit to adhintz/openpilot that referenced this pull request Dec 20, 2018
)

* GM: remove refactor leftovers (commaai#440)

* Move calibration values (commaai#441)

* initial commit

* moved constants

* Keep steering on radar fault (commaai#442)

* Add initial support for Holden/Opel Astra BK (commaai#431)

* Added Astra support to README and RELEASE notes (commaai#443)

* Honda Nidec: avoid giraffe setting alert when car is turned off (commaai#449)

* Adding support for 2018 GMC Acadia Denali (commaai#453)

* added acadia

* adding acadia

* adding acadia

* Update radar_interface.py

* adding acadia

* refactored

* fixed tuning

* Adding acadia

* Update interface.py

* fixed whitespace

* fixed whitespace

* ACC cancel button

* GM: Cadillac ATS Coupe 2018 support (commaai#445)

* GM: Cadillac ATS Coupe 2018 support

* Missed adding Cadillac ATS

* Fixed Capitalization + Made CT6 Comment Cleaner (commaai#456)

* Update README.md

* Updated CT6 comment

* Add Lexus RX450HL as sub to RX450H (commaai#458)

Add Lexus RX450HL as sub to RX450H

* on gas pedal press, send cancel ACC button to cancel OpenPilot

* try sending +1 counter so our message isn't a duplicate

* only do the accel pedal for specific cars

* do accel pedal for all models

* try always sending 1 for cancel acc frame

* clean up comments and remove unused moving_fast

* remove unused make can msg parameters

* try incrementing wheel button counter by 2 to see if that works better for cancel

* Squashed 'opendbc/' changes from 3f6cd74..e108b6b

e108b6b Add more Sign recognitions (commaai#126)
6e8a363 Add GM FCW Alert (Take 2) (commaai#125)
368701a Revert "Add GM FCW dashboard alert (commaai#123)" (commaai#124)
98b5f66 Add GM FCW dashboard alert (commaai#123)
71b7588 Adds dbc for 2019 Honda Insight (commaai#122)

git-subtree-dir: opendbc
git-subtree-split: e108b6b

* Squashed 'pyextra/' changes from fb152de..8cc1594

8cc1594 update overpy
2c18997 switch to forked version of overpy

git-subtree-dir: pyextra
git-subtree-split: 8cc1594238fcae6acb8bcd825ac73bbca586b1be

* openpilot v0.5.7 release

* try to simplify message logic

* clean up code

* move Chrylser into main table in readme

* 0.5.7 hotfixes

* On pedal press, if in steer error state, do not send ACC cancel button message.
Sending the ACC cancel button message in this state causes the car to display warnings.

* set the new ret.openpilotLongitudinalControl = False

* hotfix: wait longer in CDP mode before switching to fast charge, so EON can boot (commaai#469)

* generalize jeep fingerprint to also cover 2017 Jeep Grand Cherokee Trailhawk

* disable pedal_gas for now to do a devel release. Sending 23b might fault other cars.

* add jeep grand cherokee 2017 to readme car list

* separate fingerprint for trailhawk. separate wheelbase for Cherokee
adhintz added a commit to adhintz/openpilot that referenced this pull request Dec 29, 2018
* GM: remove refactor leftovers (commaai#440)

* Move calibration values (commaai#441)

* initial commit

* moved constants

* Keep steering on radar fault (commaai#442)

* Add initial support for Holden/Opel Astra BK (commaai#431)

* Added Astra support to README and RELEASE notes (commaai#443)

* Honda Nidec: avoid giraffe setting alert when car is turned off (commaai#449)

* Adding support for 2018 GMC Acadia Denali (commaai#453)

* added acadia

* adding acadia

* adding acadia

* Update radar_interface.py

* adding acadia

* refactored

* fixed tuning

* Adding acadia

* Update interface.py

* fixed whitespace

* fixed whitespace

* ACC cancel button

* GM: Cadillac ATS Coupe 2018 support (commaai#445)

* GM: Cadillac ATS Coupe 2018 support

* Missed adding Cadillac ATS

* Fixed Capitalization + Made CT6 Comment Cleaner (commaai#456)

* Update README.md

* Updated CT6 comment

* Add Lexus RX450HL as sub to RX450H (commaai#458)

Add Lexus RX450HL as sub to RX450H

* on gas pedal press, send cancel ACC button to cancel OpenPilot

* try sending +1 counter so our message isn't a duplicate

* only do the accel pedal for specific cars

* do accel pedal for all models

* try always sending 1 for cancel acc frame

* clean up comments and remove unused moving_fast

* remove unused make can msg parameters

* try incrementing wheel button counter by 2 to see if that works better for cancel

* Squashed 'opendbc/' changes from 3f6cd74..e108b6b

e108b6b Add more Sign recognitions (commaai#126)
6e8a363 Add GM FCW Alert (Take 2) (commaai#125)
368701a Revert "Add GM FCW dashboard alert (commaai#123)" (commaai#124)
98b5f66 Add GM FCW dashboard alert (commaai#123)
71b7588 Adds dbc for 2019 Honda Insight (commaai#122)

git-subtree-dir: opendbc
git-subtree-split: e108b6b

* Squashed 'pyextra/' changes from fb152de..8cc1594

8cc1594 update overpy
2c18997 switch to forked version of overpy

git-subtree-dir: pyextra
git-subtree-split: 8cc1594238fcae6acb8bcd825ac73bbca586b1be

* openpilot v0.5.7 release

* try to simplify message logic

* clean up code

* move Chrylser into main table in readme

* 0.5.7 hotfixes

* On pedal press, if in steer error state, do not send ACC cancel button message.
Sending the ACC cancel button message in this state causes the car to display warnings.

* set the new ret.openpilotLongitudinalControl = False

* hotfix: wait longer in CDP mode before switching to fast charge, so EON can boot (commaai#469)

* generalize jeep fingerprint to also cover 2017 Jeep Grand Cherokee Trailhawk

* disable pedal_gas for now to do a devel release. Sending 23b might fault other cars.

* add jeep grand cherokee 2017 to readme car list

* separate fingerprint for trailhawk. separate wheelbase for Cherokee

* add fingerprint for Pacifica 2019 Hybrid.
adhintz added a commit to adhintz/openpilot that referenced this pull request Dec 29, 2018
* remove logging from devel

* Revert "remove logging from devel"

This reverts commit 2145747.

* Squashed 'opendbc/' changes from 3f6cd74..e108b6b

e108b6b Add more Sign recognitions (commaai#126)
6e8a363 Add GM FCW Alert (Take 2) (commaai#125)
368701a Revert "Add GM FCW dashboard alert (commaai#123)" (commaai#124)
98b5f66 Add GM FCW dashboard alert (commaai#123)
71b7588 Adds dbc for 2019 Honda Insight (commaai#122)

git-subtree-dir: opendbc
git-subtree-split: e108b6b

* Squashed 'pyextra/' changes from fb152de..8cc1594

8cc1594 update overpy
2c18997 switch to forked version of overpy

git-subtree-dir: pyextra
git-subtree-split: 8cc1594238fcae6acb8bcd825ac73bbca586b1be

* openpilot v0.5.7 release

* 0.5.7 hotfixes

* On pedal press, if in steer error state, do not send ACC cancel button message.
Sending the ACC cancel button message in this state causes the car to display warnings.

* set the new ret.openpilotLongitudinalControl = False

* hotfix: wait longer in CDP mode before switching to fast charge, so EON can boot (commaai#469)

* generalize jeep fingerprint to also cover 2017 Jeep Grand Cherokee Trailhawk

* disable pedal_gas for now to do a devel release. Sending 23b might fault other cars.

* add jeep grand cherokee 2017 to readme car list

* 0.5.7 & Jeep Grand Cherokee 2017 support (#7)

* GM: remove refactor leftovers (commaai#440)

* Move calibration values (commaai#441)

* initial commit

* moved constants

* Keep steering on radar fault (commaai#442)

* Add initial support for Holden/Opel Astra BK (commaai#431)

* Added Astra support to README and RELEASE notes (commaai#443)

* Honda Nidec: avoid giraffe setting alert when car is turned off (commaai#449)

* Adding support for 2018 GMC Acadia Denali (commaai#453)

* added acadia

* adding acadia

* adding acadia

* Update radar_interface.py

* adding acadia

* refactored

* fixed tuning

* Adding acadia

* Update interface.py

* fixed whitespace

* fixed whitespace

* ACC cancel button

* GM: Cadillac ATS Coupe 2018 support (commaai#445)

* GM: Cadillac ATS Coupe 2018 support

* Missed adding Cadillac ATS

* Fixed Capitalization + Made CT6 Comment Cleaner (commaai#456)

* Update README.md

* Updated CT6 comment

* Add Lexus RX450HL as sub to RX450H (commaai#458)

Add Lexus RX450HL as sub to RX450H

* on gas pedal press, send cancel ACC button to cancel OpenPilot

* try sending +1 counter so our message isn't a duplicate

* only do the accel pedal for specific cars

* do accel pedal for all models

* try always sending 1 for cancel acc frame

* clean up comments and remove unused moving_fast

* remove unused make can msg parameters

* try incrementing wheel button counter by 2 to see if that works better for cancel

* Squashed 'opendbc/' changes from 3f6cd74..e108b6b

e108b6b Add more Sign recognitions (commaai#126)
6e8a363 Add GM FCW Alert (Take 2) (commaai#125)
368701a Revert "Add GM FCW dashboard alert (commaai#123)" (commaai#124)
98b5f66 Add GM FCW dashboard alert (commaai#123)
71b7588 Adds dbc for 2019 Honda Insight (commaai#122)

git-subtree-dir: opendbc
git-subtree-split: e108b6b

* Squashed 'pyextra/' changes from fb152de..8cc1594

8cc1594 update overpy
2c18997 switch to forked version of overpy

git-subtree-dir: pyextra
git-subtree-split: 8cc1594238fcae6acb8bcd825ac73bbca586b1be

* openpilot v0.5.7 release

* try to simplify message logic

* clean up code

* move Chrylser into main table in readme

* 0.5.7 hotfixes

* On pedal press, if in steer error state, do not send ACC cancel button message.
Sending the ACC cancel button message in this state causes the car to display warnings.

* set the new ret.openpilotLongitudinalControl = False

* hotfix: wait longer in CDP mode before switching to fast charge, so EON can boot (commaai#469)

* generalize jeep fingerprint to also cover 2017 Jeep Grand Cherokee Trailhawk

* disable pedal_gas for now to do a devel release. Sending 23b might fault other cars.

* add jeep grand cherokee 2017 to readme car list

* separate fingerprint for trailhawk. separate wheelbase for Cherokee

*  separate fingerprint for trailhawk. separate wheelbase for Cherokee (#8)

* GM: remove refactor leftovers (commaai#440)

* Move calibration values (commaai#441)

* initial commit

* moved constants

* Keep steering on radar fault (commaai#442)

* Add initial support for Holden/Opel Astra BK (commaai#431)

* Added Astra support to README and RELEASE notes (commaai#443)

* Honda Nidec: avoid giraffe setting alert when car is turned off (commaai#449)

* Adding support for 2018 GMC Acadia Denali (commaai#453)

* added acadia

* adding acadia

* adding acadia

* Update radar_interface.py

* adding acadia

* refactored

* fixed tuning

* Adding acadia

* Update interface.py

* fixed whitespace

* fixed whitespace

* ACC cancel button

* GM: Cadillac ATS Coupe 2018 support (commaai#445)

* GM: Cadillac ATS Coupe 2018 support

* Missed adding Cadillac ATS

* Fixed Capitalization + Made CT6 Comment Cleaner (commaai#456)

* Update README.md

* Updated CT6 comment

* Add Lexus RX450HL as sub to RX450H (commaai#458)

Add Lexus RX450HL as sub to RX450H

* on gas pedal press, send cancel ACC button to cancel OpenPilot

* try sending +1 counter so our message isn't a duplicate

* only do the accel pedal for specific cars

* do accel pedal for all models

* try always sending 1 for cancel acc frame

* clean up comments and remove unused moving_fast

* remove unused make can msg parameters

* try incrementing wheel button counter by 2 to see if that works better for cancel

* Squashed 'opendbc/' changes from 3f6cd74..e108b6b

e108b6b Add more Sign recognitions (commaai#126)
6e8a363 Add GM FCW Alert (Take 2) (commaai#125)
368701a Revert "Add GM FCW dashboard alert (commaai#123)" (commaai#124)
98b5f66 Add GM FCW dashboard alert (commaai#123)
71b7588 Adds dbc for 2019 Honda Insight (commaai#122)

git-subtree-dir: opendbc
git-subtree-split: e108b6b

* Squashed 'pyextra/' changes from fb152de..8cc1594

8cc1594 update overpy
2c18997 switch to forked version of overpy

git-subtree-dir: pyextra
git-subtree-split: 8cc1594238fcae6acb8bcd825ac73bbca586b1be

* openpilot v0.5.7 release

* try to simplify message logic

* clean up code

* move Chrylser into main table in readme

* 0.5.7 hotfixes

* On pedal press, if in steer error state, do not send ACC cancel button message.
Sending the ACC cancel button message in this state causes the car to display warnings.

* set the new ret.openpilotLongitudinalControl = False

* hotfix: wait longer in CDP mode before switching to fast charge, so EON can boot (commaai#469)

* generalize jeep fingerprint to also cover 2017 Jeep Grand Cherokee Trailhawk

* disable pedal_gas for now to do a devel release. Sending 23b might fault other cars.

* add jeep grand cherokee 2017 to readme car list

* separate fingerprint for trailhawk. separate wheelbase for Cherokee

* add fingerprint for Pacifica 2019 Hybrid.
klaus385 pushed a commit to klaus385/openpilot that referenced this pull request Dec 31, 2018
pd0wm pushed a commit that referenced this pull request Jan 31, 2020
d034f3e Added the option to turn on IR in power savings mode (#431)
82cafd1 Allow fan control in power saving (#429)
186d9dc Fixed GMLAN interrupts when used in Tesla safety (#428)
f67ec28 Fix msg checks for non Honda and Toyota (#426)

git-subtree-dir: panda
git-subtree-split: d034f3e
pd0wm pushed a commit that referenced this pull request Feb 2, 2020
d034f3e Added the option to turn on IR in power savings mode (#431)
82cafd1 Allow fan control in power saving (#429)
186d9dc Fixed GMLAN interrupts when used in Tesla safety (#428)
f67ec28 Fix msg checks for non Honda and Toyota (#426)

git-subtree-dir: panda
git-subtree-split: d034f3e
pd0wm pushed a commit that referenced this pull request Feb 2, 2020
d034f3e Added the option to turn on IR in power savings mode (#431)
82cafd1 Allow fan control in power saving (#429)
186d9dc Fixed GMLAN interrupts when used in Tesla safety (#428)
f67ec28 Fix msg checks for non Honda and Toyota (#426)

git-subtree-dir: panda
git-subtree-split: d034f3e
pd0wm pushed a commit that referenced this pull request Feb 4, 2020
d034f3e Added the option to turn on IR in power savings mode (#431)
82cafd1 Allow fan control in power saving (#429)
186d9dc Fixed GMLAN interrupts when used in Tesla safety (#428)
f67ec28 Fix msg checks for non Honda and Toyota (#426)

git-subtree-dir: panda
git-subtree-split: d034f3e
pd0wm pushed a commit that referenced this pull request Feb 4, 2020
d034f3e Added the option to turn on IR in power savings mode (#431)
82cafd1 Allow fan control in power saving (#429)
186d9dc Fixed GMLAN interrupts when used in Tesla safety (#428)
f67ec28 Fix msg checks for non Honda and Toyota (#426)

git-subtree-dir: panda
git-subtree-split: d034f3e
pd0wm pushed a commit that referenced this pull request Feb 4, 2020
d034f3e Added the option to turn on IR in power savings mode (#431)
82cafd1 Allow fan control in power saving (#429)
186d9dc Fixed GMLAN interrupts when used in Tesla safety (#428)
f67ec28 Fix msg checks for non Honda and Toyota (#426)

git-subtree-dir: panda
git-subtree-split: d034f3e
pd0wm pushed a commit that referenced this pull request Feb 5, 2020
d034f3e Added the option to turn on IR in power savings mode (#431)
82cafd1 Allow fan control in power saving (#429)
186d9dc Fixed GMLAN interrupts when used in Tesla safety (#428)
f67ec28 Fix msg checks for non Honda and Toyota (#426)

git-subtree-dir: panda
git-subtree-split: d034f3e
pd0wm pushed a commit that referenced this pull request Feb 5, 2020
d034f3e Added the option to turn on IR in power savings mode (#431)
82cafd1 Allow fan control in power saving (#429)
186d9dc Fixed GMLAN interrupts when used in Tesla safety (#428)
f67ec28 Fix msg checks for non Honda and Toyota (#426)

git-subtree-dir: panda
git-subtree-split: d034f3e
pd0wm pushed a commit that referenced this pull request Feb 5, 2020
d034f3e Added the option to turn on IR in power savings mode (#431)
82cafd1 Allow fan control in power saving (#429)
186d9dc Fixed GMLAN interrupts when used in Tesla safety (#428)
f67ec28 Fix msg checks for non Honda and Toyota (#426)

git-subtree-dir: panda
git-subtree-split: d034f3e
pd0wm pushed a commit that referenced this pull request Feb 5, 2020
d034f3e Added the option to turn on IR in power savings mode (#431)
82cafd1 Allow fan control in power saving (#429)
186d9dc Fixed GMLAN interrupts when used in Tesla safety (#428)
f67ec28 Fix msg checks for non Honda and Toyota (#426)

git-subtree-dir: panda
git-subtree-split: d034f3e
pd0wm pushed a commit that referenced this pull request Feb 6, 2020
73a60d5c uds: clear rx buffer on drain
3b20804 uds: rx message buffering
d034f3e Added the option to turn on IR in power savings mode (#431)
82cafd1 Allow fan control in power saving (#429)
186d9dc Fixed GMLAN interrupts when used in Tesla safety (#428)
f67ec28 Fix msg checks for non Honda and Toyota (#426)

git-subtree-dir: panda
git-subtree-split: 73a60d5
pd0wm pushed a commit that referenced this pull request Feb 6, 2020
73a60d5c uds: clear rx buffer on drain
3b20804 uds: rx message buffering
d034f3e Added the option to turn on IR in power savings mode (#431)
82cafd1 Allow fan control in power saving (#429)
186d9dc Fixed GMLAN interrupts when used in Tesla safety (#428)
f67ec28 Fix msg checks for non Honda and Toyota (#426)

git-subtree-dir: panda
git-subtree-split: 73a60d5
pd0wm pushed a commit that referenced this pull request Feb 6, 2020
73a60d5c uds: clear rx buffer on drain
3b20804 uds: rx message buffering
d034f3e Added the option to turn on IR in power savings mode (#431)
82cafd1 Allow fan control in power saving (#429)
186d9dc Fixed GMLAN interrupts when used in Tesla safety (#428)
f67ec28 Fix msg checks for non Honda and Toyota (#426)

git-subtree-dir: panda
git-subtree-split: 73a60d5
dragonpilot pushed a commit to dragonpilot-community/dragonpilot that referenced this pull request Apr 7, 2020
Vaggysag pushed a commit to Vaggysag/openpilot that referenced this pull request Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants