Package xbot.common.subsystems.drive
Enum Class SwerveSimpleTrajectoryMode
- All Implemented Interfaces:
Serializable
,Comparable<SwerveSimpleTrajectoryMode>
,Constable
Different ways to input values for SwerveSimpleTrajectoryCommand
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA constant velocity (in meters) throughout the course of our travelA duration from point A to point B throughout the course of our travel NOTE: It is suggested to use ConstantVelocity mode instead for better consistency!One set of kinematics values for the entire routeEach point will have its own set of kinematics values it'll use (acceleration, velocity, etc.) NOTE: You'll have to calculate the start and ending velocities of each individual point! Suggested to use GlobalKinematicsValue instead! -
Method Summary
Modifier and TypeMethodDescriptionstatic SwerveSimpleTrajectoryMode
Returns the enum constant of this class with the specified name.static SwerveSimpleTrajectoryMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ConstantVelocity
A constant velocity (in meters) throughout the course of our travel -
DurationInSeconds
A duration from point A to point B throughout the course of our travel NOTE: It is suggested to use ConstantVelocity mode instead for better consistency! -
KinematicsForIndividualPoints
Each point will have its own set of kinematics values it'll use (acceleration, velocity, etc.) NOTE: You'll have to calculate the start and ending velocities of each individual point! Suggested to use GlobalKinematicsValue instead! -
GlobalKinematicsValue
One set of kinematics values for the entire route
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-