-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathConstants.java
More file actions
78 lines (48 loc) · 2.29 KB
/
Copy pathConstants.java
File metadata and controls
78 lines (48 loc) · 2.29 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2018-2019 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 Constants class provides a convenient place for teams to hold robot-wide
* numerical or boolean constants. This class should not be used for any other
* purpose. All constants should be declared globally (i.e. public static). Do
* not put anything functional in this class.
*
* <p>
* It is advised to statically import this class (or one of its inner classes)
* wherever the constants are needed, to reduce verbosity.
*/
public final class Constants {
public static final int kDriverControllerPort = 0;
// Motors
public static final int DRIVER_BACK_ID = 3;
public static final int PASSNGER_FRONT_ID =2;
public static final int PASSNGER_BACK_ID = 1;
public static final int DRIVER_FRONT_ID = 4;
public static final int INTAKE_ID = 5;
public static final int FIRST_PIVOT_ID = 6;
public static final int SECOND_PIVOT_ID = 7;
public static final int EXTEND_ID = 8;
//solionds
// Speed controller groups.
public static final boolean LEFT_MOTORS_INVERTED = false;
public static final boolean RIGHT_MOTORS_INVERTED = false;
// Controllers.
public static final int XBOX_CONTROLLER_PORT_0 = 0;
public static final int XBOX_CONTROLLER_PORT_1 = 1;
// Gyro.
public static final double GYRO_CYCLE_TIME = 0.02;
public static final int ENCODER_VALUE_PER_FOOT = 2440;
//Claw
public static final int CLAW_SOLIOND_0 = 4;
public static final int CLAW_SOLIOND_1 = 1;
//Hopper
public static final int HOPPER_SOLIOND_0 = 0;
public static final int HOPPER_SOLIOND_1 = 5;
//Sliding
public static final int SLIDING_SOLIOND_0 = 2;
public static final int SLIDING_SOLIOND_1 = 3;
}