more updates

This commit is contained in:
2025-10-11 21:45:11 -05:00
parent bcf59ff458
commit aea3f0b2d4
4 changed files with 72 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
package org.firstinspires.ftc.teamcode.utils;
package org.firstinspires.ftc.teamcode.tests;
import com.acmerobotics.dashboard.FtcDashboard;

View File

@@ -0,0 +1,57 @@
package org.firstinspires.ftc.teamcode.tests;
import com.acmerobotics.dashboard.FtcDashboard;
import com.acmerobotics.dashboard.config.Config;
import com.acmerobotics.dashboard.telemetry.MultipleTelemetry;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import org.firstinspires.ftc.teamcode.utils.Robot;
import org.firstinspires.ftc.teamcode.utils.subsystems.Limelight;
@Autonomous
@Config
public class LimelightTest extends LinearOpMode {
public static String MODE = "AT";
public static int pipe = 1;
MultipleTelemetry TELE;
Robot robot;
@Override
public void runOpMode() throws InterruptedException {
robot = new Robot(hardwareMap);
TELE = new MultipleTelemetry(telemetry, FtcDashboard.getInstance().getTelemetry());
Limelight limelight = new Limelight(robot, TELE);
limelight.setMode(MODE);
limelight.setTelemetryOn(true);
waitForStart();
if(isStopRequested()) return;
while(opModeIsActive()){
limelight.setPipeline(pipe);
limelight.setMode(MODE);
limelight.update();
TELE.update();
}
}
}

View File

@@ -0,0 +1,10 @@
package org.firstinspires.ftc.teamcode.utils;
import com.acmerobotics.dashboard.config.Config;
@Config
public class Vars {
public static boolean USING_LL = false;
}

View File

@@ -0,0 +1,4 @@
package org.firstinspires.ftc.teamcode.utils.functions;
public class DistanceToTarget {
}