Package frc.robot.shared.config
Class SetAndSeekMotionConfig
java.lang.Object
frc.robot.shared.config.AbstractConfig
frc.robot.shared.config.SetAndSeekMotionConfig
Configuration bundle for trapezoidal motion profile parameters used by set-and-seek subsystems.
Values are stored in degrees (and degrees per second) for human readability. Radian-based getters are provided for WPILib controllers that expect radians. Every field is surfaced to SmartDashboard so it can be tuned live without redeploying.
-
Nested Class Summary
Nested classes/interfaces inherited from class frc.robot.shared.config.AbstractConfig
AbstractConfig.ComponentPoseConfig -
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleStarting position used to seed the initial profile state, in degrees.doubleStarting velocity used to seed the initial profile state, in degrees per second.doubleMaximum acceleration for the trapezoidal profile, in degrees per second squared.doubleMaximum velocity for the trapezoidal profile, in degrees per second.doubleAcceptable position error when deciding if the mechanism is at its goal, in degrees.doubleAcceptable velocity error when deciding if the mechanism is at its goal, in degrees per second. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the initial position in radians.doubleReturns the initial velocity in radians per second.doubleReturns the maximum profile acceleration, tuned via SmartDashboard.doubleReturns the maximum profile acceleration in radians per second squared.doubleReturns the maximum profile velocity, tuned via SmartDashboard.doubleReturns the maximum profile velocity in radians per second.doubleReturns the allowed position error in radians.doubleReturns the allowed velocity error in radians per second.Methods inherited from class frc.robot.shared.config.AbstractConfig
getDashboardPrefix, initializeNestedDashboardPrefixes, readTunableBoolean, readTunableDegrees, readTunableDegreesAsRadians, readTunableNumber, readTunableString, setDashboardPrefix
-
Field Details
-
maximumVelocityDegreesPerSecond
public double maximumVelocityDegreesPerSecondMaximum velocity for the trapezoidal profile, in degrees per second. -
maximumAccelerationDegreesPerSecondSquared
public double maximumAccelerationDegreesPerSecondSquaredMaximum acceleration for the trapezoidal profile, in degrees per second squared. -
positionToleranceDegrees
public double positionToleranceDegreesAcceptable position error when deciding if the mechanism is at its goal, in degrees. -
velocityToleranceDegreesPerSecond
public double velocityToleranceDegreesPerSecondAcceptable velocity error when deciding if the mechanism is at its goal, in degrees per second. -
initialPositionDegrees
public double initialPositionDegreesStarting position used to seed the initial profile state, in degrees. -
initialVelocityDegreesPerSecond
public double initialVelocityDegreesPerSecondStarting velocity used to seed the initial profile state, in degrees per second.
-
-
Constructor Details
-
SetAndSeekMotionConfig
public SetAndSeekMotionConfig()
-
-
Method Details
-
getMaximumVelocityDegreesPerSecond
public double getMaximumVelocityDegreesPerSecond()Returns the maximum profile velocity, tuned via SmartDashboard.- Returns:
- max velocity in degrees per second
-
getMaximumVelocityRadiansPerSecond
public double getMaximumVelocityRadiansPerSecond()Returns the maximum profile velocity in radians per second.- Returns:
- max velocity in radians per second
-
getMaximumAccelerationDegreesPerSecondSquared
public double getMaximumAccelerationDegreesPerSecondSquared()Returns the maximum profile acceleration, tuned via SmartDashboard.- Returns:
- max acceleration in degrees per second squared
-
getMaximumAccelerationRadiansPerSecondSquared
public double getMaximumAccelerationRadiansPerSecondSquared()Returns the maximum profile acceleration in radians per second squared.- Returns:
- max acceleration in radians per second squared
-
getPositionToleranceRadians
public double getPositionToleranceRadians()Returns the allowed position error in radians.- Returns:
- position tolerance in radians
-
getVelocityToleranceRadiansPerSecond
public double getVelocityToleranceRadiansPerSecond()Returns the allowed velocity error in radians per second.- Returns:
- velocity tolerance in radians per second
-
getInitialPositionRadians
public double getInitialPositionRadians()Returns the initial position in radians.- Returns:
- starting position in radians
-
getInitialVelocityRadiansPerSecond
public double getInitialVelocityRadiansPerSecond()Returns the initial velocity in radians per second.- Returns:
- starting velocity in radians per second
-