Class Constants

java.lang.Object
frc8768.robot.util.Constants

public class Constants extends Object
Anything that stays the same throughout the runtime of the program should be in here.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Swerve-specific configuration.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final edu.wpi.first.math.geometry.Translation2d
    Center of bot
    static final double
    Controller deadband, prevents accidental input
    static final int
    The Main Driver controller ID
    static final edu.wpi.first.math.geometry.Translation2d
    Field size in meters, relative to 0,0
    static final double
    Inertia of Momentum in KG Sq Meters
    static final int
    How often to poll operators, ms
    static final double
    Weight of Robot in Kilograms
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DRIVER_CONTROLLER_ID

      public static final int DRIVER_CONTROLLER_ID
      The Main Driver controller ID
      See Also:
    • CONTROLLER_DEADBAND

      public static final double CONTROLLER_DEADBAND
      Controller deadband, prevents accidental input
      See Also:
    • BOT_CENTER

      public static final edu.wpi.first.math.geometry.Translation2d BOT_CENTER
      Center of bot
    • FIELD_SIZE

      public static final edu.wpi.first.math.geometry.Translation2d FIELD_SIZE
      Field size in meters, relative to 0,0
    • WEIGHT

      public static final double WEIGHT
      Weight of Robot in Kilograms
      See Also:
    • INERTIA

      public static final double INERTIA
      Inertia of Momentum in KG Sq Meters
      See Also:
    • POLL_RATE

      public static final int POLL_RATE
      How often to poll operators, ms
      See Also:
  • Constructor Details

    • Constants

      public Constants()