Files
2022NoWayHome/src/main/java/frc4388/robot/subsystems/Intake.java
T

29 lines
680 B
Java
Raw Normal View History

2022-01-12 06:00:44 +05:30
// 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 edu.wpi.first.wpilibj2.command.SubsystemBase;
public class Intake extends SubsystemBase {
/** Creates a new Intake. */
public Intake() {
}
@Override
public void periodic() {
// This method will be called once per scheduler run
}
2022-01-13 05:41:53 +05:30
public void runWithTriggers(double leftTrigger, double rightTrigger) {
2022-01-12 06:34:13 +05:30
m_intakeMotor.set(input);
}
2022-01-13 05:41:53 +05:30
public void runExtender(double input) {
2022-01-12 06:34:13 +05:30
m_extenderMotor.set(input);
}
2022-01-12 06:00:44 +05:30
}