Skip to content

Commit

Permalink
update parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
huangxinghui233 committed Oct 8, 2021
1 parent 3c0cfb4 commit 05cf7db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions initial/initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self):
self.positionnow = 0 # 两车道线A1求和
self.changing = False # 处于超车状态时为True
# self.saftydistance = 11 # (最大时速50)与前车的安全距离 对于紧密跟车的情况 要准确识别并控速
self.saftydistance = 16 # 与前车的安全距离 对于紧密跟车的情况 要准确识别并控速
self.saftydistance = 18 # 与前车的安全距离 对于紧密跟车的情况 要准确识别并控速
self.direction = 'mid' # 当前行驶方向
self.lanefuture = 2.0

Expand All @@ -43,11 +43,11 @@ def __init__(self):
class ControlData(object):
def __init__(self):

self.speeduplimit = 80
self.speeduplimit = 85
self.superspeeduplimit = 101 # super speedup control speed
self.superspeeduplimittime = 60 # super speedup time threshold
self.superspeeduplimittime = 45 # super speedup time threshold
self.followlimit = 40
self.overtakelimit = 70 # overtake control speed
self.overtakelimit = 72 # overtake control speed

self.lat_kp = 2.10
self.lat_ki = 0.07
Expand Down
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@

while True:
distanceprocessing.run(distanceData, previous_distance, current_distance, MyCar)


# print("current : ", distanceData.distance_mid, "left : ", distanceData.distance_left, "right : ", distanceData.distance_right)
# print("position : ", MyCar.positionnow)
Expand Down

0 comments on commit 05cf7db

Please sign in to comment.