Package frc.team4373.swerve
Class SwerveConfig.RobotDimensions
- java.lang.Object
-
- frc.team4373.swerve.SwerveConfig.RobotDimensions
-
- Enclosing class:
- SwerveConfig
public static final class SwerveConfig.RobotDimensions extends java.lang.Object
A configuration object representing the dimensions of the robot.
-
-
Field Summary
Fields Modifier and Type Field Description double
trackwidth
The trackwidth of the robot.double
wheelbase
The wheelbase of the robot.
-
Constructor Summary
Constructors Constructor Description RobotDimensions(double trackwidth, double wheelbase)
Constructs an object describing the dimensions of a swerve bot.
-
-
-
Field Detail
-
trackwidth
public final double trackwidth
The trackwidth of the robot. Trackwidth is the distance between the centers of the right and left wheels. It must be in the same units as the wheelbase.
-
wheelbase
public final double wheelbase
The wheelbase of the robot. Wheelbase is the distance between the centers of the front and rear wheels. It must be in the same units as the trackwidth.
-
-
Constructor Detail
-
RobotDimensions
public RobotDimensions(double trackwidth, double wheelbase)
Constructs an object describing the dimensions of a swerve bot.- Parameters:
trackwidth
- the robot's trackwidth (unit-agnostic; units must match wheelbase).wheelbase
- the robot's wheelbase (unit-agnostic; units must match trackwidth).
-
-