Package frc.robot
Class Constants.DrivetrainConstants
java.lang.Object
frc.robot.Constants.DrivetrainConstants
- Enclosing class:
- Constants
Constants used by the
Drivetrain
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Angular velocity skew correction configuration.static final class
Configure auto synchronization for encoders during a match.static final class
Configure pathfinding to poses.static final class
SysId configuration. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final File
Directory that contains the YAGSL configuration.static final boolean
Enablescosine compensation
.static final boolean
Enablesheading correction
.static final double
Maximum speed of the robot in meters per second.static final Pose2d
Starting pose.static final SwerveDriveTelemetry.TelemetryVerbosity
YAGSL telemetry verbosity when in debug mode.static final SwerveDriveTelemetry.TelemetryVerbosity
YAGSL telemetry verbosity when in normal mode.static final double
Translation axis scaling. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MAX_SPEED
public static final double MAX_SPEEDMaximum speed of the robot in meters per second. -
CONFIG_DIR
Directory that contains the YAGSL configuration. -
TELEMETRY_VERBOSITY_DEBUG
YAGSL telemetry verbosity when in debug mode. -
TELEMETRY_VERBOSITY_NORMAL
YAGSL telemetry verbosity when in normal mode. -
TRANSLATION_SCALE
public static final double TRANSLATION_SCALETranslation axis scaling. Changes the overall maximum speed of the drivetrain.- See Also:
-
STARTING_POSITION
Starting pose. -
ENABLE_HEADING_CORRECTION
public static final boolean ENABLE_HEADING_CORRECTIONEnablesheading correction
. Should only be used while controlling the robot via angle.- See Also:
-
ENABLE_COSINE_COMPENSATION
public static final boolean ENABLE_COSINE_COMPENSATIONEnablescosine compensation
.- See Also:
-
-
Constructor Details
-
DrivetrainConstants
public DrivetrainConstants()
-