-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathConstants.java
More file actions
31 lines (25 loc) · 1.15 KB
/
Constants.java
File metadata and controls
31 lines (25 loc) · 1.15 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
package frc.robot;
public class Constants {
// Distances
public static final int WHEEL_DIAMETER_INCHES = 6;
public static final double WHEEL_BASE_WIDTH_FEET = 2.25;
public static final double WHEEL_DIAMETER_METERS = 0.1524;
public static final double FINAL_DISTANCE_FROM_ROCKET_INCHES = 16;
// Maximum Speeds
public static final double MAX_VELOCITY_FEET_SECONDS = 20;
public static final double MAX_VELOCITY_METERS = 20 * 12 * 2.54; // randome value
public static final double MAX_ACCELERATION_METERS = 10.0; // random value
public static final double MAX_JERK_METERS = 10; // random value
// Camera
public static final double DISTANCE_OFF_GROUND_CAMERA_INCHES = 1;
public static final double DISTANCE_FROM_FRONT_LEFT_CORNER_INCHES = 1;
public static final double DISTANCE_FROM_FRONT_INCHES = 1;
public static final int WIDTH_OF_CAMERA_PIXELS = 1920;
public static final int HEIGHT_OF_CAMERA_PIXELS = 1080;
// PID
public double P = 0;
public double I = 0;
public double D = 0;
// Other
public static final int ENCODER_TICKS_PER_REVOLUTION = 4096;
}