Skip to content

Commit 864bd30

Browse files
committed
finalized pos tol rad and vel tol rad
1 parent 071ebe6 commit 864bd30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/carlmontrobotics/Constants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ public static final class Arm {
7878

7979
// Boundaries
8080
public static final double ARM_TELEOP_MAX_GOAL_DIFF_FROM_CURRENT_RAD = 0; // placeholder
81-
public static final double POS_TOLERANCE_RAD = Units.degreesToRadians(195); // placeholder //Whether or not this is the actual account
81+
public static final double POS_TOLERANCE_RAD = Units.degreesToRadians(42); // placeholder //Whether or not this is the actual account
8282
// idk TODO: test on actual encoder without a conversion
8383
// factor
84-
public static final double VEL_TOLERANCE_RAD_P_SEC = 0; // placeholder
84+
public static final double VEL_TOLERANCE_RAD_P_SEC = (POS_TOLERANCE_RAD/0.02); // 20ms per robot loop
8585
public static final double UPPER_ANGLE_LIMIT_RAD = Units.degreesToRadians(70);
8686
public static final double LOWER_ANGLE_LIMIT_RAD = Units.degreesToRadians(0);
8787
public static final double ARM_DISCONT_RAD = (LOWER_ANGLE_LIMIT_RAD + UPPER_ANGLE_LIMIT_RAD) / 2 - Math.PI;

0 commit comments

Comments
 (0)