Skip to content

Commit

Permalink
organized constants
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiebudman committed Mar 3, 2024
1 parent 173787b commit 2fb1a2f
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/main/java/org/carlmontrobotics/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ public static final class Arm {
public static final boolean MOTOR_INVERTED_FOLLOWER = false;
public static final double ROTATION_TO_RAD = 2 * Math.PI;
public static final boolean ENCODER_INVERTED = false;
public static final double ARM_TELEOP_MAX_GOAL_DIFF_FROM_CURRENT_RAD = 0; //placeholder
public static final double POS_TOLERANCE_RAD = 0; //placeholder
public static final double VEL_TOLERANCE_RAD_P_SEC = 0; //placeholder


public static final int MAX_VOLTAGE = 12;
public static final double ENCODER_OFFSET_RAD = 0;

Expand Down Expand Up @@ -69,18 +68,21 @@ public static final class Arm {
//if needed
public static final double COM_ARM_LENGTH_METERS = 0.381 ;
public static final double ARM_MASS_KG = 9.59302503;
public static final double UPPER_ANGLE_LIMIT = Units.degreesToRadians(70);
public static final double LOWER_ANGLE_LIMIT = Units.degreesToRadians(0);
public static final double ARM_DISCONT_RAD = (LOWER_ANGLE_LIMIT + UPPER_ANGLE_LIMIT) /2 - Math.PI;


public static TrapezoidProfile.Constraints TRAP_CONSTRAINTS = new TrapezoidProfile.Constraints(MAX_FF_VEL, MAX_FF_ACCEL);
//other0;

public static final double MARGIN_OF_ERROR = Math.PI/18;
//Boundaries



//Arm buttons
public static final double UPPER_ANGLE_LIMIT = Units.degreesToRadians(70);
public static final double LOWER_ANGLE_LIMIT = Units.degreesToRadians(0);
public static final double ARM_DISCONT_RAD = (LOWER_ANGLE_LIMIT + UPPER_ANGLE_LIMIT) /2 - Math.PI;
public static final double ARM_TELEOP_MAX_GOAL_DIFF_FROM_CURRENT_RAD = 0; //placeholder
public static final double POS_TOLERANCE_RAD = 0; //placeholder
public static final double VEL_TOLERANCE_RAD_P_SEC = 0; //placeholder


}

Expand Down

0 comments on commit 2fb1a2f

Please sign in to comment.