mirror of
https://github.com/Team4388/2024AcrossTheRidgebotiverse.git
synced 2026-06-09 00:38:02 -06:00
31 lines
816 B
Java
31 lines
816 B
Java
|
|
// 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 frc4388.robot.subsystems;
|
||
|
|
|
||
|
|
import com.revrobotics.CANSparkMax;
|
||
|
|
import com.revrobotics.SparkLimitSwitch;
|
||
|
|
|
||
|
|
import edu.wpi.first.wpilibj.CAN;
|
||
|
|
import edu.wpi.first.wpilibj.motorcontrol.Spark;
|
||
|
|
import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
||
|
|
|
||
|
|
public class Intake extends SubsystemBase {
|
||
|
|
/** Creates a new Intake. */
|
||
|
|
private CANSparkMax intakeMotor;
|
||
|
|
public Intake(CANSparkMax intakeMotor) {
|
||
|
|
this.intakeMotor = intakeMotor;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
public void spinIntakeMotor() {
|
||
|
|
intakeMotor.set(0.2);
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public void periodic() {
|
||
|
|
// This method will be called once per scheduler run
|
||
|
|
}
|
||
|
|
}
|