-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathRobotMap.java
More file actions
41 lines (35 loc) · 1.74 KB
/
RobotMap.java
File metadata and controls
41 lines (35 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
package frc.robot;
/**
* The RobotMap is a mapping from the ports sensors and actuators are wired into
* to a variable name. This provides flexibility changing wiring, makes checking
* the wiring easier and significantly reduces the number of magic numbers
* floating around.
*/
public class RobotMap {
// For example to map the left and right motors, you could define the
// following variables to use with your drivetrain subsystem.
// public static int leftMotor = 1;
// public static int rightMotor = 2;
// If you are using multiple modules, make sure to define both the port
// number and the module. For example you with a rangefinder:
// public static int rangefinderPort = 1;
// public static int rangefinderModule = 1;
public static final int Motor_Left_1_ID = 1;
public static final int Motor_Left_2_ID = 3;
public static final int Motor_Right_1_ID = 2;
public static final int Motor_Right_2_ID = 4;
public static final int DRIVER_CONTROLLER = 0;
public static final int LEFT_STICK_Y = 1;
public static final int LEFT_STICK_X = 2;
public static final int RIGHT_STICK_Y = 5;
public static final int ONLY_STICKY = 0;
public static final int ONLY_STICKX = 0;
public static final int RIGHT_STICK_X = 0;
public static final int JOYSTICK_CONTROLLER = 0;
}