-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Acura RDX 2018 AcuraWatch Plus Port #162
Conversation
selfdrive/car/honda/hondacan.py
Outdated
@@ -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: |
There was a problem hiding this comment.
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
selfdrive/car/honda/carcontroller.py
Outdated
@@ -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)) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be set now
selfdrive/car/honda/carstate.py
Outdated
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
@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 |
Cannot forget to give huge credit to @energee for his help and support on the port! |
This is great work guys! Will PM @vanillagorillaa and @energee about the TODO list for the merge. It's pretty close. |
@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? |
@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? |
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 |
Should also be added that OpenPilot cannot be engaged under 25mph |
selfdrive/car/honda/carcontroller.py
Outdated
@@ -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: |
There was a problem hiding this comment.
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):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
selfdrive/car/honda/carstate.py
Outdated
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: |
There was a problem hiding this comment.
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']
selfdrive/car/honda/hondacan.py
Outdated
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bug
Acura RDX JAE connector pinout? Same like JAE column in the guide? |
update release2
…i#162) * Revert entire 0.5.8 longitudinal_mpc subdir + files * Reinstate libmpc.init
…commaai#162)" This reverts commit 06d1c97.
* 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.
* 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.
LDWS improve
* Adding Acura RDX alpha support
…isable_autosteer_need_ic_integration disable the need for Autosteer enabled to run with IC integration
* Ram HD: ignore paramsd sanity check * can we do this * this instead
Acura RDX 2018 AcuraWatch Plus Port. Just needs to be tested