|
|
@ -96,7 +96,7 @@ def process_hud_alert(hud_alert): |
|
|
|
|
|
|
|
|
|
|
|
HUDData = namedtuple("HUDData", |
|
|
|
HUDData = namedtuple("HUDData", |
|
|
|
["pcm_accel", "v_cruise", "lead_visible", |
|
|
|
["pcm_accel", "v_cruise", "lead_visible", |
|
|
|
"lanes_visible", "fcw", "acc_alert", "steer_required"]) |
|
|
|
"lanes_visible", "fcw", "acc_alert", "steer_required", "lead_distance_bars"]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def rate_limit_steer(new_steer, last_steer): |
|
|
|
def rate_limit_steer(new_steer, last_steer): |
|
|
@ -251,7 +251,7 @@ class CarController(CarControllerBase): |
|
|
|
# Send dashboard UI commands. |
|
|
|
# Send dashboard UI commands. |
|
|
|
if self.frame % 10 == 0: |
|
|
|
if self.frame % 10 == 0: |
|
|
|
hud = HUDData(int(pcm_accel), int(round(hud_v_cruise)), hud_control.leadVisible, |
|
|
|
hud = HUDData(int(pcm_accel), int(round(hud_v_cruise)), hud_control.leadVisible, |
|
|
|
hud_control.lanesVisible, fcw_display, acc_alert, steer_required) |
|
|
|
hud_control.lanesVisible, fcw_display, acc_alert, steer_required, hud_control.leadDistanceBars) |
|
|
|
can_sends.extend(hondacan.create_ui_commands(self.packer, self.CAN, self.CP, CC.enabled, pcm_speed, hud, CS.is_metric, CS.acc_hud, CS.lkas_hud)) |
|
|
|
can_sends.extend(hondacan.create_ui_commands(self.packer, self.CAN, self.CP, CC.enabled, pcm_speed, hud, CS.is_metric, CS.acc_hud, CS.lkas_hud)) |
|
|
|
|
|
|
|
|
|
|
|
if self.CP.openpilotLongitudinalControl and self.CP.carFingerprint not in HONDA_BOSCH: |
|
|
|
if self.CP.openpilotLongitudinalControl and self.CP.carFingerprint not in HONDA_BOSCH: |
|
|
|