This commit is contained in:
2026-01-03 15:58:25 -06:00
parent 3e8e2c2b4b
commit 32d481c031

View File

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