Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

차선 이탈 경고 (바퀴 두개 이탈) - TOR #8

Closed
Tracked by #2
hanbro-inha opened this issue Jun 12, 2022 · 1 comment
Closed
Tracked by #2

차선 이탈 경고 (바퀴 두개 이탈) - TOR #8

hanbro-inha opened this issue Jun 12, 2022 · 1 comment
Assignees

Comments

@hanbro-inha
Copy link
Collaborator

hanbro-inha commented Jun 12, 2022

VACS랑 OP코드를 추가적으로 올리는게 좋아보여어

@hanbro-inha hanbro-inha mentioned this issue Jun 12, 2022
14 tasks
@hanbro-inha hanbro-inha changed the title Driver TOR (take over request) (TOR when two wheels depart lane) 차선 이탈 경고 (바퀴 두개 이탈) - TOR Jun 13, 2022
@kka-na
Copy link
Owner

kka-na commented Jun 13, 2022

# 3. Calculate Lane Departure
if sm['carState'].leftBlinker or sm['carState'].rightBlinker:
warnLane = 0
else:
if (-0.9<line1s[0]<-0.75 or 0.75<line2s[0]<0.9):
warnLane = 1
print("Lane Warning")
elif (-0.75<line1s[0] or 0.75>line2s[0]):
warnLane = 2
print("Lane Out")
else:
warnLane = 0
print("Lane Stable")

@kka-na kka-na closed this as completed Jun 13, 2022
@hanbro-inha hanbro-inha added this to the Demo Ready Release milestone Jun 13, 2022
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

No branches or pull requests

2 participants