Package edu.wpi.first.math.trajectory
Class ExponentialProfile.Constraints
java.lang.Object
edu.wpi.first.math.trajectory.ExponentialProfile.Constraints
- Enclosing class:
- ExponentialProfile
public static class ExponentialProfile.Constraints extends Object
Profile constraints.
-
Field Summary
-
Method Summary
Modifier and Type Method Description static ExponentialProfile.Constraints
fromCharacteristics(double maxInput, double kV, double kA)
Constructs constraints for an ExponentialProfile from characteristics.static ExponentialProfile.Constraints
fromStateSpace(double maxInput, double A, double B)
Constructs constraints for an ExponentialProfile from State-Space parameters.double
maxVelocity()
Computes the max achievable velocity for an Exponential Profile.
-
Field Details
-
Method Details
-
maxVelocity
Computes the max achievable velocity for an Exponential Profile.- Returns:
- The seady-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.
-