Skip to content

LaneLineCheck 옵션: 차선변경 판단 및 HUD 색상 연동#251

Merged
ajouatom merged 4 commits intoajouatom:c3-v10-wipfrom
happymaj11r:lane-line-check-pr
Feb 26, 2026
Merged

LaneLineCheck 옵션: 차선변경 판단 및 HUD 색상 연동#251
ajouatom merged 4 commits intoajouatom:c3-v10-wipfrom
happymaj11r:lane-line-check-pr

Conversation

@happymaj11r
Copy link

@happymaj11r happymaj11r commented Feb 26, 2026

Summary

  • LaneLineCheck 파라미터 추가: 차선변경 시 차선 판단 기준을 설정하는 옵션 (0=기존/색상, 1=타입만, 2=실선 토크 override 허용)
  • HUD 차선 색상을 LaneLineCheck에 연동: LaneLineCheck≥1일 때 HUD 주황색 표시를 색상(노란색) 대신 타입(실선/점선) 기준으로 판단하여 차선변경 로직과 일치시킴
  • LaneLineCheck=2 실선 토크 override 버그 수정

동작 정리

LaneLineCheck 점선 실선 노란점선 노란실선 BSD
0 (기존) 초록/흰 흰색 주황 주황 주황
1, 2 초록/흰 주황 초록/흰 주황 주황

변경 파일

  • common/params_keys.h — LaneLineCheck 파라미터 키 등록
  • selfdrive/carrot_settings.json — 설정 UI 항목 추가
  • selfdrive/ui/qt/offroad/settings.cc — 설정 메뉴 등록
  • selfdrive/controls/lib/desire_helper.py — 차선변경 판단 로직
  • opendbc_repo/opendbc/car/hyundai/hyundaicanfd.py — HUD 차선 색상 표시 로직

Test plan

  • LaneLineCheck=0: 기존 동작과 동일한지 확인 (노란색 차선에서 주황 표시)
  • LaneLineCheck=1: 실선에서 주황, 노란점선에서 초록/흰색 표시 확인
  • LaneLineCheck=2: 실선에서 토크 override 허용 동작 확인
  • BSD 감지 시 항상 주황 표시 확인

🤖 Generated with Claude Code

happymaj11r and others added 4 commits February 26, 2026 09:58
색상 오인식 문제 대응: 0=색상+타입(기존), 1=타입만(점선/실선)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
점선은 바로 차선변경, 실선은 토크 넣으면 override

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
solid_line_blocked일 때 토크+BSD 체크 후 바로 laneChangeStarting으로
전환하도록 수정. 기존에는 이후 분기의 lane_change_available 체크에
걸려서 실선 토크 override가 동작하지 않았음.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
LaneLineCheck>=1일 때 HUD 차선 색상을 색상 raw값 대신
타입(점선/실선) 기준으로 판단하도록 변경하여
차선변경 로직과 HUD 표시 간 불일치 해소

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing to openpilot! In order for us to review your PR as quickly as possible, check the following:

  • Convert your PR to a draft unless it's ready to review
  • Read the contributing docs
  • Before marking as "ready for review", ensure:
    • the goal is clearly stated in the description
    • all the tests are passing
    • the change is something we merge
    • include a route or your device' dongle ID if relevant

@ajouatom ajouatom merged commit 811fd39 into ajouatom:c3-v10-wip Feb 26, 2026
1 check passed
@happymaj11r happymaj11r deleted the lane-line-check-pr branch February 26, 2026 01:16
ajouatom pushed a commit that referenced this pull request Feb 26, 2026
* 차선변경 차선판단 설정 추가 (LaneLineCheck)

색상 오인식 문제 대응: 0=색상+타입(기존), 1=타입만(점선/실선)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* LaneLineCheck=2 옵션 추가: 실선에서 토크 override 허용

점선은 바로 차선변경, 실선은 토크 넣으면 override

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* LaneLineCheck=2 실선 토크 override 버그 수정

solid_line_blocked일 때 토크+BSD 체크 후 바로 laneChangeStarting으로
전환하도록 수정. 기존에는 이후 분기의 lane_change_available 체크에
걸려서 실선 토크 override가 동작하지 않았음.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* HUD 차선 색상 표시를 LaneLineCheck 옵션에 연동

LaneLineCheck>=1일 때 HUD 차선 색상을 색상 raw값 대신
타입(점선/실선) 기준으로 판단하도록 변경하여
차선변경 로직과 HUD 표시 간 불일치 해소

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants