Skip to content

Commit

Permalink
Shahar: spaces mostly
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh-Pe committed Aug 7, 2024
1 parent 5b72e63 commit 4857c24
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 17 deletions.
1 change: 0 additions & 1 deletion src/main/java/training/Elbow/Elbow.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,4 @@ protected void subsystemPeriodic() {
iElbow.moveToAngle(targetAngle);
}


}
3 changes: 1 addition & 2 deletions src/main/java/training/Elbow/ElbowConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class ElbowConstants {

// * These constants are temp and shall be replaced with calibrated constants that aren't 0

protected static final String LOG_PATH = "";
protected static final String LOG_PATH = "Elbow/";


public static final Rotation2d DEFAULT_POSITION = new Rotation2d(1, 1);
Expand All @@ -23,5 +23,4 @@ public class ElbowConstants {

protected static final Rotation2d TOLERANCE = new Rotation2d(0);


}
1 change: 0 additions & 1 deletion src/main/java/training/Elbow/IElbow.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ public interface IElbow {

Rotation2d getCurrentVelocity();


}
4 changes: 2 additions & 2 deletions src/main/java/training/Elbow/NeoElbow/BrokenNeoElbow.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public BrokenNeoElbow() {
motor.getPIDController().setP(NeoElbowConstants.PID_CONTROLLER.getP());
motor.getPIDController().setD(NeoElbowConstants.PID_CONTROLLER.getD());
motor.getPIDController().setI(NeoElbowConstants.PID_CONTROLLER.getI());
motor.getPIDController().setOutputRange(-NeoElbowConstants.LOWER_POWER_LIMIT, NeoElbowConstants.UPPER_POWER_LIMIT);
motor.getPIDController().setOutputRange(NeoElbowConstants.LOWER_POWER_LIMIT, NeoElbowConstants.UPPER_POWER_LIMIT);
motor.getPIDController().setPositionPIDWrappingMaxInput(1);
motor.getPIDController().setPositionPIDWrappingMinInput(0);
motor.getPIDController().getPositionPIDWrappingEnabled();
Expand All @@ -36,7 +36,7 @@ public Rotation2d getCurrentVelocity() {
@Override
public void moveToAngle(Rotation2d targetAngle) {
double targetAngleRotations = targetAngle.getRotations() % 1;
double feedForwardOutputVoltage = NeoElbowConstants.NEO_FEEDFORWARD
double feedForwardOutputVoltage = NeoElbowConstants.FEEDFORWARD
.calculate(getCurrentAngle().getRadians(), motor.getEncoder().getVelocity());

motor.getPIDController()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class NeoElbowConstants {

protected static final PIDController PID_CONTROLLER = new PIDController(0, 0, 0);

protected static final ArmFeedforward NEO_FEEDFORWARD = new ArmFeedforward(0, 0, 0, 0); // Keep kV and kA 0
protected static final ArmFeedforward FEEDFORWARD = new ArmFeedforward(0, 0, 0, 0); // Keep kV and kA 0


protected static final double ELBOW_GEAR_RATIO = (double) 250 / 7;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/training/Roller/IRoller.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ public interface IRoller {

void updateVelocity(Rotation2d targetVelocity);


}

1 change: 0 additions & 1 deletion src/main/java/training/Roller/RollerCommandBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ public Command rollForward() {
return new InstantCommand(roller::rollForward, roller);
}


}
2 changes: 0 additions & 2 deletions src/main/java/training/Roller/RollerConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@ public class RollerConstants {

protected static final Rotation2d DEFAULT_VELOCITY = Rotation2d.fromRotations(0);

// * Simulation

}
1 change: 0 additions & 1 deletion src/main/java/training/Wrist/IWrist.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ public interface IWrist {

void moveToAngle(Rotation2d targetAngle);


}
1 change: 0 additions & 1 deletion src/main/java/training/Wrist/NeoWrist/NeoWrist.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ public void moveToAngle(Rotation2d targetAngle) {
motor.setSelectedSensorPosition(targetAngle.getRotations());
}


}
1 change: 0 additions & 1 deletion src/main/java/training/Wrist/NeoWrist/WristConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ public class WristConstants {

protected static final int ID = 4;


}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ public class SimulationWristConstants {

protected static final double POWER_LIMIT = 0.9; // limit both min and max


}
1 change: 0 additions & 1 deletion src/main/java/training/Wrist/Wrist.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,4 @@ protected void subsystemPeriodic() {
iWrist.moveToAngle(targetAngle);
}


}
1 change: 0 additions & 1 deletion src/main/java/training/Wrist/WristConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ public class WristConstants {

protected static final Rotation2d LOWER_POSITION = new Rotation2d(0);


}

0 comments on commit 4857c24

Please sign in to comment.