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

Acura RDX 2018 AcuraWatch Plus Port #162

Merged
merged 41 commits into from
Feb 6, 2018
Merged

Acura RDX 2018 AcuraWatch Plus Port #162

merged 41 commits into from
Feb 6, 2018

Conversation

vanillagorillaa
Copy link
Contributor

Acura RDX 2018 AcuraWatch Plus Port. Just needs to be tested

@@ -71,7 +71,7 @@ def create_accord_steering_control(apply_steer, idx):
def create_steering_control(apply_steer, crv, idx):
"""Creates a CAN message for the Honda DBC STEERING_CONTROL."""
commands = []
if crv:
if crv or rdx:
Copy link
Contributor

Choose a reason for hiding this comment

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

rdx isn't an input here

@@ -175,6 +175,6 @@ def update(self, sendcan, enabled, CS, frame, actuators, \

if (frame % radar_send_step) == 0:
idx = (frame/radar_send_step) % 4
can_sends.extend(hondacan.create_radar_commands(CS.v_ego, CS.civic, CS.accord, CS.crv, idx))
can_sends.extend(hondacan.create_radar_commands(CS.v_ego, CS.civic, CS.accord, CS.crv, CS.rdx, idx))
Copy link
Contributor

@rbiasini rbiasini Dec 18, 2017

Choose a reason for hiding this comment

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

@energee @vanillagorillaa , needs to change create_steerint_control as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should be set now

self.right_blinker_on = cp.vl[0x294]['RIGHT_BLINKER']
self.cruise_speed_offset = -0.3
self.park_brake = 0 # TODO
self.brake_hold = 0 # RDX doesn't have EPB

self.gear_shifter = parse_gear_shifter(can_gear_shifter, self.acura)
Copy link
Contributor

Choose a reason for hiding this comment

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

so, rdx gear shifter is parsed as the civic?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

RDX matches civic, 0x8-D, 0x1-P, 0x2-R, 0x4-N

@vanillagorillaa
Copy link
Contributor Author

@rbiasini This should be good for alpha support if we can still get it in for 0.4.0. Still going to work on Steer_Max and will submit a PR at a later point once we find final value

@vanillagorillaa
Copy link
Contributor Author

Cannot forget to give huge credit to @energee for his help and support on the port!

@rbiasini
Copy link
Contributor

This is great work guys! Will PM @vanillagorillaa and @energee about the TODO list for the merge. It's pretty close.

@energee
Copy link
Contributor

energee commented Dec 21, 2017

@rbiasini The person testing is relaying that awareness is not being reset by a steer-override or button events like cruise reset or resume. I can't see how this is possible especially since it is clearly reading the buttons because openpilot is being engaged. I am not seeing any obvious reason for this and theres not too much I can do without the ability to debug, any ideas?

@rbiasini
Copy link
Contributor

@energee I believe that steer override might not reset awareness status because the steer torque sensor is probably wrong in the dbc. It's strange about the buttons though. Is he sure?

@energee
Copy link
Contributor

energee commented Dec 21, 2017

I checked steer torque sensor, I think it is ok.
screen shot 2017-12-21 at 4 31 13 pm
Was hoping there was something obvious i was missing. It is hard doing this without physical access!

@vanillagorillaa
Copy link
Contributor Author

Another thing that is happening is every time he starts up the car is that OP is not giving him the "Warning, keep hands on the wheel" message. He says this occurs every time on start up. He is not 100% sure that changing speed is resetting timer so hes going to look tonight. Can confirm that OP disengages when Gas/Break/Cancel is applied

@vanillagorillaa
Copy link
Contributor Author

Should also be added that OpenPilot cannot be engaged under 25mph

@@ -121,7 +121,7 @@ def update(self, sendcan, enabled, CS, frame, actuators, \
if CS.CP.carFingerprint in (CAR.CIVIC, CAR.ODYSSEY):
is_fw_modified = os.getenv("DONGLE_ID") in ['b0f5a01cf604185c']
STEER_MAX = 0x1FFF if is_fw_modified else 0x1000
elif CS.crv:
elif CS.crv or CS.acura_rdx:
Copy link
Contributor

@rbiasini rbiasini Feb 5, 2018

Choose a reason for hiding this comment

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

this is a bug. Actually the same bug in 0.4.1 release that affected what is "not civic or odyssey". replace by:
elif CS.CP.carFingerprint in (CAR.CRV, CAR.ACURA_RDX):

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

self.main_on = cp.vl["SCM_BUTTONS"]['MAIN_ON']

self.cruise_speed_offset = calc_cruise_offset(cp.vl["CRUISE_PARAMS"]['CRUISE_SPEED_OFFSET'], self.v_ego)
self.gear_shifter = parse_gear_shifter(can_gear_shifter, self.CP.carFingerprint)

self.pedal_gas = cp.vl["POWERTRAIN_DATA"]['PEDAL_GAS']
# crv doesn't include cruise control
if self.CP.carFingerprint != CAR.CRV:
if self.CP.carFingerprint != CAR.CRV or CAR.ACURA_RDX:
Copy link
Contributor

Choose a reason for hiding this comment

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

@vanillagorillaa this should be
if CS.CP.carFingerprint not in (CAR.CRV, CAR.ACURA_RDX)

actually, I would invert the check as follow:

if CS.CP.carFingerprint in (CAR.CRV, CAR.ACURA_RDX):
  self.car_gas = self.pedal_gas
else:
  self.car_gas = cp.vl["GAS_PEDAL_2"]['CAR_GAS']

def create_steering_control(apply_steer, car_fingerprint, idx):
"""Creates a CAN message for the Honda DBC STEERING_CONTROL."""
commands = []
if car_fingerprint == CAR.CRV:
if car_fingerprint == CAR.CRV or CAR.ACURA_RDX:
Copy link
Contributor

Choose a reason for hiding this comment

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

bug

vanillagorillaa and others added 10 commits February 5, 2018 16:41
81d9871 Lexus: added first draft of RX dbc file
cb352da fix toyota steering lka message length
d294f64 fix gas pedal message length rav4h
2d035de acura rdx remove double defined message
500a734 fix acura rdx dbc, import was missing

git-subtree-dir: opendbc
git-subtree-split: 81d9871
@rbiasini rbiasini merged commit 0dc6778 into commaai:devel Feb 6, 2018
@voland696
Copy link

Acura RDX JAE connector pinout? Same like JAE column in the guide?

rav4kumar pushed a commit to rav4kumar/openpilot that referenced this pull request Jul 15, 2019
edukinara pushed a commit to edukinara/openpilot that referenced this pull request Jul 18, 2019
…i#162)

* Revert entire 0.5.8 longitudinal_mpc subdir + files

* Reinstate libmpc.init
edukinara pushed a commit to edukinara/openpilot that referenced this pull request Jul 18, 2019
edukinara pushed a commit to edukinara/openpilot that referenced this pull request Jul 18, 2019
* Fix dampening of steer sensor data (commaai#161)

The smoothing I was doing on the combination of actual steering angle AND rate cause causing a conflict of noise **production** and **reduction**.  The dampening should ONLY be done on the steering rate, which is the derivative component.  This fix makes reactSteer and dampSteer much more useful

* Revert to 0.5.9 longmpc to fix all the sad distance bar stuff (commaai#162)

* Revert entire 0.5.8 longitudinal_mpc subdir + files

* Reinstate libmpc.init

* Retune back to 0.5.9 long

* Fix for hard braking

* import math library

* Revert "Fix dampening of steer sensor data (commaai#161)"

This reverts commit 820fb6b.
edukinara pushed a commit to edukinara/openpilot that referenced this pull request Jul 18, 2019
* Fix dampening of steer sensor data (commaai#161)

The smoothing I was doing on the combination of actual steering angle AND rate cause causing a conflict of noise **production** and **reduction**.  The dampening should ONLY be done on the steering rate, which is the derivative component.  This fix makes reactSteer and dampSteer much more useful

* Revert to 0.5.9 longmpc to fix all the sad distance bar stuff (commaai#162)

* Revert entire 0.5.8 longitudinal_mpc subdir + files

* Reinstate libmpc.init

* Retune back to 0.5.9 long

* Fix for hard braking

* import math library

* Revert "Fix dampening of steer sensor data (commaai#161)"

This reverts commit 820fb6b.
Maelstrom96 pushed a commit to Maelstrom96/openpilot that referenced this pull request Dec 15, 2019
dragonpilot referenced this pull request in dragonpilot-community/dragonpilot Apr 7, 2020
* Adding Acura RDX alpha support
rafcabezas added a commit to rafcabezas/openpilot that referenced this pull request Nov 8, 2020
…isable_autosteer_need_ic_integration

disable the need for Autosteer enabled to run with IC integration
SebastienLubrano pushed a commit to SebastienLubrano/openpilot that referenced this pull request Aug 9, 2021
nworb-cire pushed a commit to opgm/openpilot that referenced this pull request Aug 2, 2024
* Ram HD: ignore paramsd sanity check

* can we do this

* this instead
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.

6 participants