forked from acmerobotics/road-runner-quickstart
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
43ab713
commit 1c93a61
Showing
3 changed files
with
87 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 36 additions & 8 deletions
44
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/robot/Constants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,45 @@ | ||
package org.firstinspires.ftc.teamcode.robot; | ||
|
||
public class Constants { | ||
public static boolean initialStateCalled = false; | ||
public static double CLAW_OPEN = 0.3; | ||
public static double CLAW_CLOSE = 0.67; | ||
|
||
public static double ROT_SERVO_DEFAULT = 0.86; | ||
public static double ROT_SERVO_BACK = 0.18; | ||
|
||
private static final double CLAW_UP = 0.3; | ||
private static final double CLAW_DOWN = 0.7; | ||
private static final double ROT_SERVO = 0.5; | ||
public static double CLAW_ANGLE_FORWARD = 0; | ||
public static double CLAW_ANGLE_DOWN = 0.3; | ||
public static double CLAW_ANGLE_BACK = 0.6; | ||
|
||
// private static final double | ||
public static int CLAW_SLIDER_FORWARD = 8000; | ||
public static int CLAW_SLIDER_DOWN = 0; | ||
public static int CLAW_SLIDER_BACK = -9300; | ||
|
||
public Constants(boolean initialStateCalled){ | ||
this.initialStateCalled = initialStateCalled; | ||
public static int HORIZONTAL_SLIDE_INTAKE_INITIAL = 200; | ||
|
||
} | ||
public static double INTAKE_ANGLE_TRANSFER = .48; | ||
public static double INTAKE_ANGLE_DOWN = .51; | ||
public static int VERTICAL_SLIDE_POSITION = 140; | ||
|
||
public static int VERTICAL_SLIDE_TRANSFER_POSITION = 420; | ||
|
||
public static int VERTICAL_SLIDE_WALL_POSITION = 20; | ||
|
||
public static int VERTICAL_SLIDE_HANG_PREP_POSITION = 1450; | ||
|
||
public static int VERTICAL_SLIDE_HANG_DROP_POSITION = 1400; | ||
|
||
public static int VERTICAL_SLIDE_DROP_L1 = 1800; | ||
|
||
public static int VERTICAL_SLIDE_DROP_L2 = 1800; | ||
|
||
public static int HORIZONTAL_SLIDE_TRANSFER_POSITION = 100; | ||
|
||
public static int HORIZONTAL_SLIDE_MAX_POSITION = 300; | ||
|
||
public static double VERTICAL_SLIDE_PID_kp = 0.027; | ||
public static double VERTICAL_SLIDE_PID_kd = 0.027; | ||
public static double VERTICAL_SLIDE_PID_ki = 0.0001; | ||
|
||
public static int VERTICAL_SLIDE_PID_target = 400; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters