diff --git a/Car.py b/Car.py index c3995c1..b176d3d 100644 --- a/Car.py +++ b/Car.py @@ -380,7 +380,7 @@ class Car(): # alors on accelere pour s'inserer if self.distToInter > self.minSpace + dts or (tti + leader.T + marg) < ltti: self.v = min(vmax, self.v + self.a*dt) - print(self.id, "ca passe") + #print(self.id, "ca passe") else:# sinon on freine self.v = max(0, self.v - self.b*dt) self.updateGraph(self.v, vmax, 0) @@ -406,6 +406,9 @@ class Car(): if self.controller.t < self.startTime: return + if self.v < 1 and self.getCurrentEdge().isSpecial(): + print(f"{self.id} stalled where he souldn't have") + self.leader=self.getLeader(100) self.conduiteKrauss(self.vmax,self.leader,dt)