selfdrive.car.tesla package

Submodules

selfdrive.car.tesla.carcontroller module

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

Bases: object

update(CC, CS)[source]

selfdrive.car.tesla.carstate module

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

Bases: CarStateBase

static get_cam_can_parser(CP)[source]
static get_can_parser(CP)[source]
update(cp, cp_cam)[source]

selfdrive.car.tesla.interface module

class selfdrive.car.tesla.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=None, experimental_long=False)[source]

selfdrive.car.tesla.radar_interface module

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

Bases: RadarInterfaceBase

update(can_strings)[source]
selfdrive.car.tesla.radar_interface.get_radar_can_parser(CP)[source]

selfdrive.car.tesla.teslacan module

class selfdrive.car.tesla.teslacan.TeslaCAN(packer, pt_packer)[source]

Bases: object

static checksum(msg_id, dat)[source]
create_action_request(msg_stw_actn_req, cancel, bus, counter)[source]
create_longitudinal_commands(acc_state, speed, min_accel, max_accel, cnt)[source]
create_steering_control(angle, enabled, frame)[source]

selfdrive.car.tesla.values module

class selfdrive.car.tesla.values.AngleRateLimit(speed_points, max_angle_diff_points)

Bases: tuple

max_angle_diff_points

Alias for field number 1

speed_points

Alias for field number 0

class selfdrive.car.tesla.values.Button(event_type, can_addr, can_msg, values)

Bases: tuple

can_addr

Alias for field number 1

can_msg

Alias for field number 2

event_type

Alias for field number 0

values

Alias for field number 3

class selfdrive.car.tesla.values.CANBUS[source]

Bases: object

autopilot_chassis = 2
autopilot_powertrain = 6
chassis = 0
powertrain = 4
private = 5
radar = 1
class selfdrive.car.tesla.values.CAR[source]

Bases: object

AP1_MODELS = 'TESLA AP1 MODEL S'
AP2_MODELS = 'TESLA AP2 MODEL S'
class selfdrive.car.tesla.values.CarControllerParams[source]

Bases: object

ACCEL_TO_SPEED_MULTIPLIER = 3
JERK_LIMIT_MAX = 8
JERK_LIMIT_MIN = -8
RATE_LIMIT_DOWN = AngleRateLimit(speed_points=[0.0, 5.0, 15.0], max_angle_diff_points=[5.0, 3.5, 0.4])
RATE_LIMIT_UP = AngleRateLimit(speed_points=[0.0, 5.0, 15.0], max_angle_diff_points=[5.0, 0.8, 0.15])

Module contents