// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.

package frc.robot.subsystems;


import com.ctre.phoenix.motorcontrol.VictorSPXControlMode;
import com.ctre.phoenix.motorcontrol.can.WPI_VictorSPX;

import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Constants;

public class IntakeRoller extends SubsystemBase {
  WPI_VictorSPX rollerVictor = new WPI_VictorSPX(Constants.ROLLER_CAN_ID);
  
    /** Creates a new IntakeRoller. */

  public IntakeRoller() {}

  public void rollerIn() {
    rollerVictor.set(VictorSPXControlMode.PercentOutput, 0.8); //FIXME spinning correct?
  }

  public void rollerOut(){
    rollerVictor.set(VictorSPXControlMode.PercentOutput, -0.8);//FIXME spinning correct?
  }

  public void rollerStop(){
    rollerVictor.stopMotor();
  }

  @Override
  public void periodic() {
    // This method will be called once per scheduler run
  }
}
