-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathSetup.java
More file actions
40 lines (30 loc) · 1.14 KB
/
Setup.java
File metadata and controls
40 lines (30 loc) · 1.14 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
package org.firstinspires.ftc.hoops;
import com.acmerobotics.dashboard.config.Config;
public class Setup {
@Config
public static class Connected {
public static boolean DRIVEBASE = false;
public static boolean EXTERNAL_IMU = false;
public static boolean LAUNCHER = true;
public static boolean INTAKE = false;
}
@Config
public static class HardwareNames {
public static String FLMOTOR = "fl";
public static String FRMOTOR = "fr";
public static String RLMOTOR = "rl";
public static String RRMOTOR = "rr";
public static String IMU = "imu";
public static String EXTERNAL_IMU = "adafruit-imu";
public static String TOP_LAUNCH = "top";
public static String BOTTOM_LAUNCH = "bottom";
public static String INTAKE = "slurp";
}
@Config
public static class GlobalSettings {
public static double STICK_DEAD_ZONE = 0.1;
public static double STRAIGHTEN_SCALE_FACTOR = 0.25;
public static double STRAIGHTEN_RANGE = .15; // Fraction of 45 degrees...
public static double TRIGGER_THRESHOLD = 0.7;
}
}