Skip to content

Commit

Permalink
More Units
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonS09 committed Mar 4, 2024
1 parent 5ea8b8e commit d557415
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions src/main/java/org/carlmontrobotics/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ public static final class Drivetrain {

public static final class Arm {



//Motor port
public static final int ARM_MOTOR_PORT_MASTER = 13;
public final static int ARM_MOTOR_PORT_FOLLOWER = 18;
Expand Down Expand Up @@ -62,15 +60,15 @@ public static final class Arm {
public static final double kV = 0.1;
public static final double kA = 0.1;
public static final double IZONE = 4;
public static final double MAX_FF_VEL = 1; // rot / s
public static final double MAX_FF_ACCEL = 1; // rot / s^2
public static final double MAX_FF_VEL_RAD_P_S = 1; // rad / s
public static final double MAX_FF_ACCEL_RAD_P_S = 1; // rad / s^2

//if needed
public static final double COM_ARM_LENGTH_METERS = 0.381 ;
public static final double ARM_MASS_KG = 9.59302503;


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

public static final double MARGIN_OF_ERROR = Math.PI/18;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/carlmontrobotics/commands/ArmTeleop.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public double getRequestedSpeeds() {
if (Math.abs(joystick.getAsDouble()) <= Constants.OI.JOY_THRESH) {
rawArmVel = 0.0;
} else {
rawArmVel = MAX_FF_VEL * joystick.getAsDouble();
rawArmVel = MAX_FF_VEL_RAD_P_S * joystick.getAsDouble();
}

return rawArmVel;
Expand Down

0 comments on commit d557415

Please sign in to comment.