Skip to content

Commit

Permalink
change param order
Browse files Browse the repository at this point in the history
Signed-off-by: Autumn60 <[email protected]>
  • Loading branch information
Autumn60 committed Nov 25, 2024
1 parent 0d3f326 commit 5075a25
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Assets/AWSIM/Scripts/Vehicles/Vehicle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,15 @@ public float SidewaySlipMultipler
// -MaxSteerAngleInput <= SteerAngleInput <= MaxSteerAngleInput.
[Range(0.01f, 80)]
public float MaxSteerAngleInput = 25f;
[SerializeField, Min(0.0f), Tooltip("Set 0 to disable the lag")]
private float steerAngleTimeConstant = 0.0f;

// Set value to clamp AccelerationInput (m/s^2).
// -MaxAccelerationInput <= AccelerationInput <= MaxAccelerationInput.
[Range(0.01f, 50)]
public float MaxAccelerationInput = 10;
[SerializeField, Min(0.0f), Tooltip("Set 0 to disable the lag")]
private float accelerationTimeConstant = 0.0f;

[Header("Inputs")]

Expand All @@ -195,8 +199,6 @@ public float AccelerationInput
set => acceleration.DesiredValue = Mathf.Clamp(value, -MaxAccelerationInput, MaxAccelerationInput);
}
private FirstOrderLaggedFloat acceleration;
[SerializeField, Min(0.0f), Tooltip("Set 0 to disable the lag")]
private float accelerationTimeConstant = 0.0f;

/// <summary>
/// Vehicle steering input. Tire angle (degree)
Expand All @@ -208,8 +210,6 @@ public float SteerAngleInput
set => steerAngle.DesiredValue = Mathf.Clamp(value, -MaxSteerAngleInput, MaxSteerAngleInput);
}
private FirstOrderLaggedFloat steerAngle;
[SerializeField, Min(0.0f), Tooltip("Set 0 to disable the lag")]
private float steerAngleTimeConstant = 0.0f;

/// <summary>
/// Vehicle turn signal input. NONE, LEFT, RIGHT, HAZARD.
Expand Down

0 comments on commit 5075a25

Please sign in to comment.