-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConstants.java
More file actions
49 lines (40 loc) · 1.76 KB
/
Copy pathConstants.java
File metadata and controls
49 lines (40 loc) · 1.76 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
package frc.robot;
import edu.wpi.first.wpilibj.RobotBase;
import edu.wpi.first.math.util.Units;
public class Constants {
public static final Mode simMode = Mode.SIM;
public static final Mode currentMode = RobotBase.isReal() ? Mode.REAL : simMode;
public static enum Mode {
REAL,
SIM,
REPLAY
}
public static class IndexerConstants {
public static final double INTAKE_VOLTAGE = 1.5;
public static final double OUTAKE_VOLTAGE = -5.0;
public static final int MOTOR_ID = 1;
}
public static class FlywheelConstants {
public static final double SHOOT_VOLTAGE = 3.0;
public static final int MOTOR_ID_1 = 13;
public static final int MOTOR_ID_2 = 14;
}
public static class ClimbConstants {
public static final double INTAKE_VOLTAGE = 1.5;
public static final double OUTAKE_VOLTAGE = -1.5;
public static final int MOTOR_ID = 1;
}
public static final class AutoAlignConstants {
public static final double TRANSLATION_KP = 0.5;
public static final double TRANSLATION_KD = 0.0;
public static final double TRANSLATION_VELOCITY = 3.5; // Meters/Sec
public static final double TRANSLATION_ACCELERATION = 3.5; // Meters/Sec^2
public static final double TRANSLATION_JERK = 3.0; // Meters/Sec^3
public static final double ROTATION_KP = 2.0;
public static final double ROTATION_KD = 0.0;
public static final double ROTATION_MAX_VELOCITY = 5.0;
public static final double ROTATION_MAX_ACCELERATION = 10.0;
public static final double LEFT_REEF_BRANCH_OFFSET = Units.inchesToMeters(11.5 / 2.0);
public static final double RIGHT_REEF_BRANCH_OFFSET = Units.inchesToMeters(13.5 / 2.0);
}
}