Package edu.wpi.first.math.trajectory
Class ExponentialProfile.Constraints
java.lang.Object
edu.wpi.first.math.trajectory.ExponentialProfile.Constraints
- Enclosing class:
- ExponentialProfile
Profile constraints.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfromCharacteristics(double maxInput, double kV, double kA) Constructs constraints for an ExponentialProfile from characteristics.fromStateSpace(double maxInput, double A, double B) Constructs constraints for an ExponentialProfile from State-Space parameters.doubleComputes the max achievable velocity for an Exponential Profile.
-
Field Details
-
maxInput
Maximum unsigned input voltage. -
A
The State-Space 1x1 system matrix. -
B
The State-Space 1x1 input matrix.
-
-
Method Details
-
maxVelocity
Computes the max achievable velocity for an Exponential Profile.- Returns:
- The steady-state velocity achieved by this profile.
-
fromCharacteristics
public static ExponentialProfile.Constraints fromCharacteristics(double maxInput, double kV, double kA) Constructs constraints for an ExponentialProfile from characteristics.- Parameters:
maxInput- maximum unsigned input voltagekV- The velocity gain.kA- The acceleration gain.- Returns:
- The Constraints object.
-
fromStateSpace
Constructs constraints for an ExponentialProfile from State-Space parameters.- Parameters:
maxInput- maximum unsigned input voltageA- The State-Space 1x1 system matrix.B- The State-Space 1x1 input matrix.- Returns:
- The Constraints object.
-