Skip to content

Commit

Permalink
Set barriers status while pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
keyeh committed Oct 4, 2024
1 parent 05ea780 commit ddad808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/car/toyota/toyotacan.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def create_ui_command(packer, steer, chime, left_line, right_line, left_lane_dep
# Lines: 3 "orange", 2 "faded", 1 "solid", 0 "none";
"RIGHT_LINE": 3 if right_lane_depart else 1 if right_line else 2,
"LEFT_LINE": 3 if left_lane_depart else 1 if left_line else 2,
"BARRIERS": 1 if lat_active else 0,
"BARRIERS": 1 if lat_active and not steeringPressed else 0,
"LKAS_STATUS": 2 if lat_active and not steeringPressed else 1 if lat_available else 0,

# static signals
Expand Down

0 comments on commit ddad808

Please sign in to comment.