Skip to content

Commit

Permalink
Change log name
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerSeiford committed Nov 23, 2023
1 parent 5c5aae9 commit 755cdad
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/main/java/frc/robot/subsystems/Chassis.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ private static final class Constants {
private final MotorControllerGroup left, right;
private final DifferentialDrive drive;

private ChassisSpeeds target = new ChassisSpeeds();
@AutoLogOutput
private ChassisSpeeds targetSpeeds = new ChassisSpeeds();

public Chassis() {
frontLeft = new WPI_TalonSRX(Constants.FRONT_LEFT_CAN_ID);
Expand Down Expand Up @@ -70,16 +71,11 @@ public Chassis() {
}

private void drive(ChassisSpeeds speeds) {
target = speeds;
targetSpeeds = speeds;

drive.arcadeDrive(speeds.vxMetersPerSecond, speeds.omegaRadiansPerSecond, false);
}

@AutoLogOutput
public ChassisSpeeds targetSpeeds() {
return target;
}

public Command defaultCommand(Supplier<ChassisSpeeds> supplier) {
return run(() -> drive(supplier.get()));
}
Expand Down

0 comments on commit 755cdad

Please sign in to comment.