Skip to content

Commit

Permalink
testing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sciborgsweb committed Nov 18, 2024
1 parent bcd5b3b commit 2386379
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 43 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/sciborgs1155/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private Command teleopCommand() {

return Commands.sequence(
Commands.print("Enabled Teleop Mode!"),
drivetrain.inputArcade(() -> -driver.getLeftY(), () -> -driver.getLeftX()).repeatedly())
drivetrain.inputArcade(() -> driver.getLeftY(), () -> driver.getRightX()))
.withName("Teleop Command")
.finallyDo(() -> System.out.println("Disabled Teleop Mode!"));
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/sciborgs1155/robot/tankdrive/DiffDrive.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class DiffDrive extends SubsystemBase implements Logged {
* @param rightInput : Power, from [-1.0,1.0]
*/
public Command inputTank(DoubleSupplier leftInput, DoubleSupplier rightInput) {
return runOnce(() -> inputHandler.tankDrive(leftInput.getAsDouble(), rightInput.getAsDouble()))
return run(() -> inputHandler.tankDrive(leftInput.getAsDouble(), rightInput.getAsDouble()))
.withName("inputTank(" + leftInput.getAsDouble() + "," + rightInput.getAsDouble() + ")");
}

Expand All @@ -54,7 +54,7 @@ public Command inputTank(DoubleSupplier leftInput, DoubleSupplier rightInput) {
* @param rotation : Power, from [-1.0,1.0]
*/
public Command inputArcade(DoubleSupplier drive, DoubleSupplier rotation) {
return runOnce(() -> inputHandler.arcadeDrive(drive.getAsDouble(), rotation.getAsDouble()))
return run(() -> inputHandler.arcadeDrive(drive.getAsDouble(), rotation.getAsDouble()))
.withName("inputArcade(" + drive.getAsDouble() + "," + rotation.getAsDouble() + ")");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public class SparkDiffDrive implements DiffDriveIO {

@Override
public Measure<Voltage> setLeftVoltage(Measure<Voltage> voltage) {
frontRightMotor.setVoltage(clampVoltage(voltage).in(Volts));
rearRightMotor.setVoltage(clampVoltage(voltage).in(Volts));
frontLeftMotor.setVoltage(clampVoltage(voltage).in(Volts));
rearLeftMotor.setVoltage(clampVoltage(voltage).in(Volts));

return voltage;
}
Expand Down Expand Up @@ -131,6 +131,9 @@ public SparkDiffDrive(int[] motorIDs) {
this.frontRightEncoder = frontRightMotor.getEncoder();
this.rearRightEncoder = rearRightMotor.getEncoder();

// this.frontLeftMotor.setInverted(true);
// this.rearLeftMotor.setInverted(true);

this.frontLeftMotor.restoreFactoryDefaults();
this.rearLeftMotor.restoreFactoryDefaults();
this.frontRightMotor.restoreFactoryDefaults();
Expand Down
38 changes: 0 additions & 38 deletions vendordeps/PathplannerLib.json

This file was deleted.

0 comments on commit 2386379

Please sign in to comment.