Example #1
0
    def __init__(self, dbc_name, CP, VM):
        self.braking = False
        self.brake_steady = 0.
        self.brake_last = 0.
        self.apply_brake_last = 0
        self.last_pump_ts = 0.
        self.packer = CANPacker(dbc_name)

        self.params = CarControllerParams(CP)
Example #2
0
  def __init__(self, dbc_name, CP, VM):
    self.braking = False
    self.brake_steady = 0.
    self.brake_last = 0.
    self.apply_brake_last = 0
    self.last_pump_ts = 0.
    self.packer = CANPacker(dbc_name)
    self.new_radar_config = False
    self.stopped_frame = 0
    self.last_wheeltick = 0
    self.last_wheeltick_ct = 0

    self.params = CarControllerParams(CP)
    def __init__(self, dbc_name, CP, VM):
        # dp
        self.last_blinker_on = False
        self.blinker_end_frame = 0.
        self.prev_lead_distance = 0.0
        self.stopped_lead_distance = 0.0
        self.lead_distance_counter = 1
        self.lead_distance_counter_prev = 1
        self.rough_lead_speed = 0.0

        self.braking = False
        self.brake_steady = 0.
        self.brake_last = 0.
        self.apply_brake_last = 0
        self.last_pump_ts = 0.
        self.packer = CANPacker(dbc_name)

        self.params = CarControllerParams(CP)