selfdrive.car.honda package

Submodules

selfdrive.car.honda.carcontroller module

class selfdrive.car.honda.carcontroller.CarController(dbc_name, CP, VM)[source]

Bases: object

update(CC, CS)[source]
class selfdrive.car.honda.carcontroller.HUDData(pcm_accel, v_cruise, lead_visible, lanes_visible, fcw, acc_alert, steer_required)

Bases: tuple

acc_alert

Alias for field number 5

fcw

Alias for field number 4

lanes_visible

Alias for field number 3

lead_visible

Alias for field number 2

pcm_accel

Alias for field number 0

steer_required

Alias for field number 6

v_cruise

Alias for field number 1

selfdrive.car.honda.carcontroller.actuator_hysteresis(brake, braking, brake_steady, v_ego, car_fingerprint)[source]
selfdrive.car.honda.carcontroller.brake_pump_hysteresis(apply_brake, apply_brake_last, last_pump_ts, ts)[source]
selfdrive.car.honda.carcontroller.compute_gas_brake(accel, speed, fingerprint)[source]
selfdrive.car.honda.carcontroller.compute_gb_honda_bosch(accel, speed)[source]
selfdrive.car.honda.carcontroller.compute_gb_honda_nidec(accel, speed)[source]
selfdrive.car.honda.carcontroller.process_hud_alert(hud_alert)[source]

selfdrive.car.honda.carstate module

class selfdrive.car.honda.carstate.CarState(CP)[source]

Bases: CarStateBase

static get_body_can_parser(CP)[source]
static get_cam_can_parser(CP)[source]
get_can_parser(CP)[source]
update(cp, cp_cam, cp_body)[source]
selfdrive.car.honda.carstate.get_can_signals(CP, gearbox_msg, main_on_sig_msg)[source]

selfdrive.car.honda.hondacan module

selfdrive.car.honda.hondacan.create_acc_commands(packer, enabled, active, accel, gas, stopping, car_fingerprint)[source]
selfdrive.car.honda.hondacan.create_bosch_supplemental_1(packer, car_fingerprint)[source]
selfdrive.car.honda.hondacan.create_brake_command(packer, apply_brake, pump_on, pcm_override, pcm_cancel_cmd, fcw, car_fingerprint, stock_brake)[source]
selfdrive.car.honda.hondacan.create_steering_control(packer, apply_steer, lkas_active, car_fingerprint, radar_disabled)[source]
selfdrive.car.honda.hondacan.create_ui_commands(packer, CP, enabled, pcm_speed, hud, is_metric, acc_hud, lkas_hud)[source]
selfdrive.car.honda.hondacan.get_lkas_cmd_bus(car_fingerprint, radar_disabled=False)[source]
selfdrive.car.honda.hondacan.get_pt_bus(car_fingerprint)[source]
selfdrive.car.honda.hondacan.spam_buttons_command(packer, button_val, car_fingerprint)[source]

selfdrive.car.honda.interface module

class selfdrive.car.honda.interface.CarInterface(CP, CarController, CarState)[source]

Bases: CarInterfaceBase

apply(c)[source]
static get_params(candidate, fingerprint={0: {}, 1: {}, 2: {}, 3: {}, 4: {}, 5: {}, 6: {}, 7: {}}, car_fw=[], experimental_long=False)[source]
static get_pid_accel_limits(CP, current_speed, cruise_speed)[source]
static init(CP, logcan, sendcan)[source]

selfdrive.car.honda.radar_interface module

class selfdrive.car.honda.radar_interface.RadarInterface(CP)[source]

Bases: RadarInterfaceBase

update(can_strings)[source]

selfdrive.car.honda.values module

class selfdrive.car.honda.values.CAR[source]

Bases: object

ACCORD = 'HONDA ACCORD 2018'
ACCORDH = 'HONDA ACCORD HYBRID 2018'
ACURA_ILX = 'ACURA ILX 2016'
ACURA_RDX = 'ACURA RDX 2018'
ACURA_RDX_3G = 'ACURA RDX 2020'
CIVIC = 'HONDA CIVIC 2016'
CIVIC_2022 = 'HONDA CIVIC 2022'
CIVIC_BOSCH = 'HONDA CIVIC (BOSCH) 2019'
CIVIC_BOSCH_DIESEL = 'HONDA CIVIC SEDAN 1.6 DIESEL 2019'
CRV = 'HONDA CR-V 2016'
CRV_5G = 'HONDA CR-V 2017'
CRV_EU = 'HONDA CR-V EU 2016'
CRV_HYBRID = 'HONDA CR-V HYBRID 2019'
FIT = 'HONDA FIT 2018'
FREED = 'HONDA FREED 2020'
HONDA_E = 'HONDA E 2020'
HRV = 'HONDA HRV 2019'
INSIGHT = 'HONDA INSIGHT 2019'
ODYSSEY = 'HONDA ODYSSEY 2018'
ODYSSEY_CHN = 'HONDA ODYSSEY CHN 2019'
PASSPORT = 'HONDA PASSPORT 2021'
PILOT = 'HONDA PILOT 2017'
RIDGELINE = 'HONDA RIDGELINE 2017'
class selfdrive.car.honda.values.CarControllerParams(CP)[source]

Bases: object

BOSCH_ACCEL_MAX = 2.0
BOSCH_ACCEL_MIN = -3.5
BOSCH_GAS_LOOKUP_BP = [-0.2, 2.0]
BOSCH_GAS_LOOKUP_V = [0, 1600]
NIDEC_ACCEL_LOOKUP_BP = [-1.0, 0.0, 0.6]
NIDEC_ACCEL_LOOKUP_V = [-4.8, 0.0, 2.0]
NIDEC_ACCEL_MAX = 1.6
NIDEC_ACCEL_MIN = -4.0
NIDEC_BRAKE_MAX = 256
NIDEC_MAX_ACCEL_BP = [0.0, 4.0, 10.0, 20.0]
NIDEC_MAX_ACCEL_V = [0.5, 2.4, 1.4, 0.6]
class selfdrive.car.honda.values.CruiseButtons[source]

Bases: object

CANCEL = 2
DECEL_SET = 3
MAIN = 1
RES_ACCEL = 4
class selfdrive.car.honda.values.Footnote(value)[source]

Bases: Enum

An enumeration.

CIVIC_DIESEL = CarFootnote(text='2019 Honda Civic 1.6L Diesel Sedan does not have ALC below 12mph.', column=<Column.FSR_STEERING: 'No ALC below'>)
class selfdrive.car.honda.values.HondaCarInfo(name: str, package: str = 'Honda Sensing', video_link: Union[str, NoneType] = None, footnotes: List[enum.Enum] = <factory>, min_steer_speed: float = 5.36448, min_enable_speed: Union[float, NoneType] = None, harness: enum.Enum = <Harness.none: 'None'>)[source]

Bases: CarInfo

min_steer_speed: float = 5.36448
package: str = 'Honda Sensing'
class selfdrive.car.honda.values.HondaFlags(value)[source]

Bases: IntFlag

An enumeration.

BOSCH_EXT_HUD = 1

Module contents