Class SwerveConfig


  • public class SwerveConfig
    extends java.lang.Object
    A 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.
      • 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 - a SwerveConfig.WheelsConfig object describing the bot's motors.
        pigeonID - the CAN ID of the Pigeon IMU (cannot be gadgeteer).