Enum Class SwerveSimpleTrajectoryMode

java.lang.Object
java.lang.Enum<SwerveSimpleTrajectoryMode>
xbot.common.subsystems.drive.SwerveSimpleTrajectoryMode
All Implemented Interfaces:
Serializable, Comparable<SwerveSimpleTrajectoryMode>, Constable

public enum SwerveSimpleTrajectoryMode extends Enum<SwerveSimpleTrajectoryMode>
Different ways to input values for SwerveSimpleTrajectoryCommand
  • Enum Constant Details

    • ConstantVelocity

      public static final SwerveSimpleTrajectoryMode ConstantVelocity
      A constant velocity (in meters) throughout the course of our travel
    • DurationInSeconds

      public static final SwerveSimpleTrajectoryMode 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

      public static final SwerveSimpleTrajectoryMode 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

      public static final SwerveSimpleTrajectoryMode GlobalKinematicsValue
      One set of kinematics values for the entire route
  • Method Details

    • values

      public static SwerveSimpleTrajectoryMode[] 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

      public static SwerveSimpleTrajectoryMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null