Skip to content

Commit

Permalink
Switch to Arm base class over interface
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelLesirge committed Mar 1, 2024
1 parent ea27319 commit e1694f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import frc.robot.subsystems.SwerveDrivetrain;
import frc.robot.subsystems.SwerveModule;
import frc.robot.subsystems.Vision;
import frc.robot.subsystems.arm.ArmInterface;
import frc.robot.subsystems.arm.Arm;
import frc.robot.subsystems.arm.DummyArm;
import frc.robot.subsystems.arm.RealArm;
import frc.robot.inputs.ChassisDriveInputs;
Expand Down Expand Up @@ -81,7 +81,7 @@ public class RobotContainer {
* if ArmConstants.HAS_ARM is false, a dummy class implementing the arm's API is
* created instead to prevent errors.
*/
private final ArmInterface arm = Constants.ArmConstants.HAS_ARM ? new RealArm(
private final Arm arm = Constants.ArmConstants.HAS_ARM ? new RealArm(
ArmConstants.LEFT_MOTOR_ID,
ArmConstants.RIGHT_MOTOR_ID,
ArmConstants.RIGHT_ENCODER_ID,
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/commands/Autos.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package frc.robot.commands;

import frc.robot.subsystems.SwerveDrivetrain;
import frc.robot.subsystems.arm.ArmInterface;
import frc.robot.subsystems.arm.Arm;
import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.math.geometry.Translation2d;
import edu.wpi.first.wpilibj2.command.Command;
Expand All @@ -25,7 +25,7 @@ public static Command rotateTestAuto(SwerveDrivetrain drivetrain, double degrees
}

/** Linden did this */
public static Command startingAuto(ArmInterface arm, SwerveDrivetrain drivetrain, boolean invertY) {
public static Command startingAuto(Arm arm, SwerveDrivetrain drivetrain, boolean invertY) {

// assumes start position in corner
double invert = 1;
Expand Down

0 comments on commit e1694f7

Please sign in to comment.