Package frc.robot
Class HardwareMap
java.lang.Object
frc.robot.HardwareMap
HardwareMap provides a centralized spot for constants related to the hardware
configuration of the robot.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanHardware map entry for the climber subsystem.static booleanHardware map entry for the drivetrain subsystem.static booleanHardware map entry for the intake subsystem.static booleanHardware map entry for the shooter subsystem.static booleanCheck if the current RoboRIO is part of a test setup or real robot.
-
Field Details
-
CAN_ID_SPARK_DRIVE_FRONT_RIGHT
public static final int CAN_ID_SPARK_DRIVE_FRONT_RIGHT- See Also:
-
CAN_ID_SPARK_DRIVE_BACK_RIGHT
public static final int CAN_ID_SPARK_DRIVE_BACK_RIGHT- See Also:
-
CAN_ID_SPARK_DRIVE_FRONT_LEFT
public static final int CAN_ID_SPARK_DRIVE_FRONT_LEFT- See Also:
-
CAN_ID_SPARK_DRIVE_BACK_LEFT
public static final int CAN_ID_SPARK_DRIVE_BACK_LEFT- See Also:
-
CAN_ID_CLIMBER_LEFT
public static final int CAN_ID_CLIMBER_LEFT- See Also:
-
CAN_ID_CLIMBER_RIGHT
public static final int CAN_ID_CLIMBER_RIGHT- See Also:
-
CAN_ID_SPARK_PIVOT_LEFT
public static final int CAN_ID_SPARK_PIVOT_LEFT- See Also:
-
CAN_ID_SPARK_PIVOT_RIGHT
public static final int CAN_ID_SPARK_PIVOT_RIGHT- See Also:
-
CAN_ID_SPARK_INTAKE
public static final int CAN_ID_SPARK_INTAKE- See Also:
-
CAN_ID_FLYWHEEL
public static final int CAN_ID_FLYWHEEL- See Also:
-
CAN_ID_FEEDER
public static final int CAN_ID_FEEDER- See Also:
-
CAN_ID_SPINDEXER
public static final int CAN_ID_SPINDEXER- See Also:
-
INTAKE_GROUND_LIMIT_SWITCH_DIO_PORT
public static final int INTAKE_GROUND_LIMIT_SWITCH_DIO_PORT- See Also:
-
INTAKE_TOP_LIMIT_SWITCH_DIO_PORT
public static final int INTAKE_TOP_LIMIT_SWITCH_DIO_PORT- See Also:
-
STORAGE_BREAK_BEAM_DIO_PORT
public static final int STORAGE_BREAK_BEAM_DIO_PORT- See Also:
-
PCM_CHANNEL_INTAKE_CYLINDER_FORWARD
public static final int PCM_CHANNEL_INTAKE_CYLINDER_FORWARD- See Also:
-
PCM_CHANNEL_INTAKE_CYLINDER_REVERSE
public static final int PCM_CHANNEL_INTAKE_CYLINDER_REVERSE- See Also:
-
CLIMBER_GROUND_LIMIT_SWITCH_DIO_PORT_LEFT
public static final int CLIMBER_GROUND_LIMIT_SWITCH_DIO_PORT_LEFT- See Also:
-
CLIMBER_GROUND_LIMIT_SWITCH_DIO_PORT_RIGHT
public static final int CLIMBER_GROUND_LIMIT_SWITCH_DIO_PORT_RIGHT- See Also:
-
-
Constructor Details
-
HardwareMap
public HardwareMap()
-
-
Method Details
-
isTestBoard
public static boolean isTestBoard()Check if the current RoboRIO is part of a test setup or real robot.- Returns:
- true if the current setup is a test setup
-
isDrivetrainEnabled
public static boolean isDrivetrainEnabled()Hardware map entry for the drivetrain subsystem.- Returns:
- if the hardware for the drivetrain is present
-
isClimberEnabled
public static boolean isClimberEnabled()Hardware map entry for the climber subsystem.- Returns:
- if the hardware for the climber is present
-
isIntakeEnabled
public static boolean isIntakeEnabled()Hardware map entry for the intake subsystem.- Returns:
- if the hardware for the intake is present
-
isShooterEnabled
public static boolean isShooterEnabled()Hardware map entry for the shooter subsystem.- Returns:
- if the hardware for the shooter is present
-