Package frc.team4373.swerve
Class SwerveConfig
- java.lang.Object
-
- frc.team4373.swerve.SwerveConfig
-
public class SwerveConfig extends java.lang.ObjectA configuration object for a swerve bot.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSwerveConfig.CurrentLimitConfigA configuration object representing the current limiting to perform on the drivetrain.static classSwerveConfig.MotorConfigA configuration object for a single motor.static classSwerveConfig.PIDA configuration object containing the gains for a PID controller.static classSwerveConfig.RobotDimensionsA configuration object representing the dimensions of the robot.static classSwerveConfig.WheelsConfigA configuration object for all four wheels of a swerve bot.
-
Field Summary
Fields Modifier and Type Field Description SwerveConfig.RobotDimensionsdimensionsThe dimensions of the robot.intpigeonIDThe CAN ID for the Pigeon IMU.SwerveConfig.WheelsConfigwheelsTheSwerveConfig.WheelsConfigconfiguration for the wheels of the robot.
-
Constructor Summary
Constructors Constructor Description SwerveConfig(SwerveConfig.RobotDimensions dimensions, SwerveConfig.WheelsConfig wheels, int pigeonID)Constructs a new configuration object for a swerve bot.
-
-
-
Field Detail
-
dimensions
public final SwerveConfig.RobotDimensions dimensions
The dimensions of the robot. The units used do not matter, so long as they are the same.
-
wheels
public final SwerveConfig.WheelsConfig wheels
TheSwerveConfig.WheelsConfigconfiguration for the wheels of the robot.
-
pigeonID
public final int pigeonID
The CAN ID for the Pigeon IMU. It must be connected over CAN, not through the gadgeteer.
-
-
Constructor Detail
-
SwerveConfig
public SwerveConfig(SwerveConfig.RobotDimensions dimensions, SwerveConfig.WheelsConfig wheels, int pigeonID)
Constructs a new configuration object for a swerve bot.- Parameters:
dimensions- the dimensions of the bot (unit-agnostic).wheels- aSwerveConfig.WheelsConfigobject describing the bot's motors.pigeonID- the CAN ID of the Pigeon IMU (cannot be gadgeteer).
-
-