Package frc.robot
Class RobotMap
java.lang.Object
frc.robot.RobotMap
public class RobotMap
extends java.lang.Object
Ports for motor controllers, caps for speed and rotation, booleans for toggles, and turn direction.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRobotMap.BotNames -
Field Summary
Fields Modifier and Type Field Description static RobotMap.BotNamesbotNamestatic intdriverXboxControllerstatic inthelicasestatic intintakeBeamBreakstatic intintakeExtensionInstatic intintakeExtensionOutstatic intintakeMotorstatic booleanisFirstCamerastatic booleanisIntakeDownstatic booleanisSpeedModestatic intleftFlywheelstatic intleftFrontFollowerstatic intleftMiddleMasterstatic intleftRearFollowerstatic intoperatorXboxControllerstatic intrightFlywheelstatic intrightFrontFollowerstatic intrightMiddleMasterstatic intrightRearFollowerstatic intwheelDiameter -
Constructor Summary
Constructors Constructor Description RobotMap() -
Method Summary
Modifier and Type Method Description static doublegetRotationCap()static doublegetSpeedCap()static voidsetBot(RobotMap.BotNames bot)Sets the bot's ports based off of the bot's name.static voidsetSpeedAndRotationCaps(double newSpeedCap, double newRotationCap)Sets the caps on speed & rotation for the drive base in teleop.
-
Field Details
-
isSpeedMode
public static boolean isSpeedMode -
isFirstCamera
public static boolean isFirstCamera -
isIntakeDown
public static boolean isIntakeDown -
leftFrontFollower
public static int leftFrontFollower -
leftMiddleMaster
public static int leftMiddleMaster -
leftRearFollower
public static int leftRearFollower -
rightFrontFollower
public static int rightFrontFollower -
rightMiddleMaster
public static int rightMiddleMaster -
rightRearFollower
public static int rightRearFollower -
wheelDiameter
public static int wheelDiameter -
leftFlywheel
public static int leftFlywheel -
rightFlywheel
public static int rightFlywheel -
helicase
public static int helicase -
intakeMotor
public static int intakeMotor -
intakeExtensionOut
public static int intakeExtensionOut -
intakeExtensionIn
public static int intakeExtensionIn -
intakeBeamBreak
public static final int intakeBeamBreak- See Also:
- Constant Field Values
-
driverXboxController
public static final int driverXboxController- See Also:
- Constant Field Values
-
operatorXboxController
public static final int operatorXboxController- See Also:
- Constant Field Values
-
botName
-
-
Constructor Details
-
RobotMap
public RobotMap()
-
-
Method Details
-
setBot
Sets the bot's ports based off of the bot's name. No further robot-specific setting is needed.- Parameters:
bot- The name of the bot.
-
getSpeedCap
public static double getSpeedCap()- Returns:
- The speed cap for the drive base in teleop.
-
getRotationCap
public static double getRotationCap()- Returns:
- The rotation speed cap for the drive base in teleop.
-
setSpeedAndRotationCaps
public static void setSpeedAndRotationCaps(double newSpeedCap, double newRotationCap)Sets the caps on speed & rotation for the drive base in teleop.- Parameters:
newSpeedCap- The speed cap to set (0 to 1).newRotationCap- The rotation speed cap to set (0 to 1).
-