]> rtime.felk.cvut.cz Git - hubacji1/path-to-traj.git/commitdiff
Refactor next of bicycle car (typo)
authorJiri Vlasak <jiri.vlasak.2@cvut.cz>
Fri, 10 Mar 2023 09:15:11 +0000 (10:15 +0100)
committerJiri Vlasak <jiri.vlasak.2@cvut.cz>
Fri, 10 Mar 2023 12:35:41 +0000 (13:35 +0100)
path-to-traj.py

index c003df28b3f9de69647e3a44678349d27d9e7ff6..1148fa4b671fd09621606cb9640c7d906e8ba9a9 100755 (executable)
@@ -361,7 +361,7 @@ class BicycleCar:
                 self.sp = 0
         self.x += DT * self.sp * cos(self.h)
         self.y += DT * self.sp * sin(self.h)
-        self.h += self.sp / self.wb * tan(self.wa) * DT
+        self.h += DT * self.sp / self.wb * tan(self.wa)
         while self.h > pi:
             self.h -= pi
         while self.h < -pi: