From 7a5a02182ee8ede12e73dc34314e7d8a5947cd9a Mon Sep 17 00:00:00 2001 From: Joshua Marshall Date: Fri, 1 Nov 2024 15:21:44 -0400 Subject: [PATCH] Changed the path driven to show-off the steering --- fws_kinematic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fws_kinematic.py b/fws_kinematic.py index 70af29b..f5a1a48 100644 --- a/fws_kinematic.py +++ b/fws_kinematic.py @@ -14,7 +14,7 @@ # Set the simulation time [s] and the sample period [s] SIM_TIME = 30.0 -T = 0.5 +T = 0.1 # Create an array of time values [s] t = np.arange(0.0, SIM_TIME, T) @@ -43,13 +43,13 @@ x[2, 0] = np.pi / 2.0 x[3, 0] = 0.0 u[0, 0] = 5.0 -u[1, 0] = 0 +u[1, 0] = 0.0 # Run the simulation for k in range(1, N): x[:, k] = rk_four(vehicle.f, x[:, k - 1], u[:, k - 1], T) u[0, k] = 5.0 - u[1, k] = -0.25 * np.sin(2.0 * t[k]) + u[1, k] = -0.5 * np.sin(1.0 * t[k]) # %% # MAKE SOME PLOTS