diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/utils/Robot.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/utils/Robot.java index 0a0050c..079c72b 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/utils/Robot.java +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/utils/Robot.java @@ -4,6 +4,7 @@ import static org.firstinspires.ftc.teamcode.variables.HardwareConfig.*; import com.qualcomm.hardware.limelightvision.Limelight3A; import com.qualcomm.hardware.rev.RevHubOrientationOnRobot; +import com.qualcomm.robotcore.hardware.DcMotorEx; import com.qualcomm.robotcore.hardware.HardwareMap; import com.qualcomm.robotcore.hardware.IMU; @@ -15,20 +16,25 @@ public class Robot { public IMU imu; + public DcMotorEx shooter1; + + public DcMotorEx shooter2; + public Robot (HardwareMap hardwareMap) { //Define components w/ hardware map limelight3A = hardwareMap.get(Limelight3A.class, "limelight"); + shooter1 = hardwareMap.get(DcMotorEx.class, "s1"); + + shooter2 = hardwareMap.get(DcMotorEx.class, "s2"); + if (USING_LL) { limelight3A = hardwareMap.get(Limelight3A.class, "limelight"); limelight3A.start(); // This tells Limelight to start looking! } - - - imu = hardwareMap.get(IMU.class, "imu"); RevHubOrientationOnRobot.LogoFacingDirection logoFacingDirection = RevHubOrientationOnRobot.LogoFacingDirection.UP; @@ -39,9 +45,5 @@ public class Robot { imu.initialize(new IMU.Parameters(orientationOnRobot)); - - - - } }