fix
This commit is contained in:
parent
1091f56cd7
commit
d38f6b10d1
2
Car.py
2
Car.py
@ -445,7 +445,7 @@ class Car():
|
||||
# ou si on as le temps d'arriver à l'intersection avant le leader (plus un marge pour garder un distance de sécu)
|
||||
# alors on accelere pour s'inserer
|
||||
#print(tti, leader.T, marg, ltti)
|
||||
if self.distToInter > max(self.interMinSpace, self.route[nextInternalIndex].getLength()) + dts or (tti + leaderAtInter.T + 0.1 + marg) < ltti:
|
||||
if self.distToInter > self.route[nextInternalIndex].getLength() + self.minSpace + dts or (tti + leaderAtInter.T + 0.1 + marg) < ltti:
|
||||
vsecInter = min(vmax, self.v + self.a*dt)
|
||||
#print(self.id, "ca passe")
|
||||
else:# sinon on freine
|
||||
|
Loading…
x
Reference in New Issue
Block a user