Package frc.robot

Class HardwareMap

java.lang.Object
frc.robot.HardwareMap

public final class HardwareMap extends Object
HardwareMap provides a centralized spot for constants related to the hardware configuration of the robot.
  • Field Details

    • CAN_ID_ELEVATOR

      public static final int CAN_ID_ELEVATOR
      See Also:
    • CAN_ID_CLIMBER

      public static final int CAN_ID_CLIMBER
    • ELEVATOR_GROUND_LIMIT_SWITCH_DIO_PORT

      public static final int ELEVATOR_GROUND_LIMIT_SWITCH_DIO_PORT
      See Also:
    • ELEVATOR_TOP_LIMIT_SWITCH_DIO_PORT

      public static final int ELEVATOR_TOP_LIMIT_SWITCH_DIO_PORT
      See Also:
    • OUTTAKE_BREAK_BEAM_DIO_PORT

      public static final int OUTTAKE_BREAK_BEAM_DIO_PORT
      See Also:
    • CLIMBER_LIMIT_SWITCH_DIO_PORT

      public static final int CLIMBER_LIMIT_SWITCH_DIO_PORT
      See Also:
    • OUTTAKE_SERVO_PWM_PORT

      public static final int OUTTAKE_SERVO_PWM_PORT
      See Also:
    • LED_STRIP_PWM_PORT

      public static final int LED_STRIP_PWM_PORT
      See Also:
    • ELASTIC_WEBSERVER_PORT

      public static final int ELASTIC_WEBSERVER_PORT
      See Also:
  • Constructor Details

    • HardwareMap

      public HardwareMap()
  • Method Details

    • isDriveHardwarePresent

      public static boolean isDriveHardwarePresent()
      Check if drive hardware is available to the RoboRIO.
      Returns:
      true if drive hardware is present
    • isElevatorHardwarePresent

      public static boolean isElevatorHardwarePresent()
      Check if elevator hardware is available to the RoboRIO. Constructor requires funnel hardware to be available as well.
      Returns:
      true if elevator hardware is present
    • isFunnelHardwarePresent

      public static boolean isFunnelHardwarePresent()
      Check if funnel hardware is available to the RoboRIO.
      Returns:
      true if funnel hardware is present
    • isClimberHardwarePresent

      public static boolean isClimberHardwarePresent()
      Check if climber hardware is available to the RoboRIO.
      Returns:
      true if climber hardware is present
    • isCVHardwarePresent

      public static boolean isCVHardwarePresent()
      Check if CV hardware is available to the RoboRIO.
      Returns:
      true if drive hardware is present
    • isLEDPresent

      public static boolean isLEDPresent()
      Check if LED hardware is available to the RoboRIO.
      Returns:
      true if LED hardware is present
    • useSuperStructure

      public static boolean useSuperStructure()
      Check if the superstructure hardware is available to the RoboRIO.
      Returns:
      true if all required hardware components are present