Started intake class
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package org.firstinspires.ftc.teamcode.subsystems;
|
||||
|
||||
import com.acmerobotics.dashboard.telemetry.MultipleTelemetry;
|
||||
import com.arcrobotics.ftclib.gamepad.GamepadEx;
|
||||
import com.qualcomm.robotcore.hardware.Gamepad;
|
||||
import com.rowanmcalpin.nextftc.core.Subsystem;
|
||||
|
||||
import org.firstinspires.ftc.teamcode.utils.Robot;
|
||||
|
||||
public class Intake extends Subsystem {
|
||||
|
||||
|
||||
public Intake (Robot robot, MultipleTelemetry telemetry, GamepadEx gamepad){
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@ package org.firstinspires.ftc.teamcode.utils;
|
||||
import com.qualcomm.robotcore.hardware.DcMotorEx;
|
||||
import com.qualcomm.robotcore.hardware.DcMotorImplEx;
|
||||
import com.qualcomm.robotcore.hardware.HardwareMap;
|
||||
import com.qualcomm.robotcore.hardware.Servo;
|
||||
|
||||
public class Robot {
|
||||
|
||||
@@ -15,6 +16,10 @@ public class Robot {
|
||||
|
||||
public DcMotorEx backRight;
|
||||
|
||||
public DcMotorEx intake;
|
||||
|
||||
public Servo rejecter;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -27,6 +32,11 @@ public class Robot {
|
||||
backLeft = hardwareMap.get(DcMotorEx.class, "bl");
|
||||
backRight = hardwareMap.get(DcMotorEx.class, "br");
|
||||
|
||||
intake = hardwareMap.get(DcMotorEx.class, "intake");
|
||||
rejecter = hardwareMap.get(Servo.class, "rejecter");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user