Skip to content

Commit

Permalink
Change the switch speed for ST to 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmadAmine998 committed Oct 9, 2024
1 parent 4c65a68 commit 0c7d412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion f1tenth_gym/envs/dynamic_models/single_track.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def vehicle_dynamics_st(x: np.ndarray, u_init: np.ndarray, params: dict):
ACCL = u[1]

# switch to kinematic model for small velocities
if V < 0.1:
if V < 0.5:
# wheelbase
lwb = params["lf"] + params["lr"]
BETA_HAT = np.arctan(np.tan(DELTA) * params["lr"] / lwb)
Expand Down

0 comments on commit 0c7d412

Please sign in to comment.