package frc.robot.subsystems; import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX; import edu.wpi.first.wpilibj2.command.Command; import edu.wpi.first.wpilibj2.command.SubsystemBase; import frc.robot.constants.ArmConstants; public class Arm extends SubsystemBase { private WPI_TalonSRX motor; public Arm() { motor = new WPI_TalonSRX(ArmConstants.kArmMotorID1); } public Command runArmMotor(double speed) { return run(() -> { motor.set(speed); }); } public Command stop() { return run(() -> motor.set(0)); } }