Skip to content

Commit

Permalink
Changed the path driven to show-off the steering
Browse files Browse the repository at this point in the history
  • Loading branch information
botprof committed Nov 1, 2024
1 parent 28d49be commit 7a5a021
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fws_kinematic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7a5a021

Please sign in to comment.