Created
April 1, 2026 22:01
-
-
Save zax71/a28c4afbfa5aae0a50f0c191d9e8e5f1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.firstinspires.ftc.teamcode.opmodes.testing; | |
| import com.qualcomm.robotcore.eventloop.opmode.TeleOp; | |
| import com.seattlesolvers.solverslib.command.RunCommand; | |
| import org.firstinspires.ftc.teamcode.CommandOpMode; | |
| import org.firstinspires.ftc.teamcode.commands.HomeCommand; | |
| import org.firstinspires.ftc.teamcode.subsystems.SpindexerSubsystem; | |
| @TeleOp(group = "Testing", name = "Home Spindexer") | |
| public class HomeSpindexerTestOpMode extends CommandOpMode { | |
| private SpindexerSubsystem spindexerSubsystem; | |
| @Override | |
| public void initialize() { | |
| this.spindexerSubsystem = new SpindexerSubsystem(hardwareMap); | |
| schedule(new HomeCommand(spindexerSubsystem)); | |
| } | |
| @Override | |
| public void preRun() { | |
| super.reset(); | |
| schedule( | |
| new RunCommand(() -> { | |
| spindexerSubsystem.setRawPower(gamepad1.left_stick_y*0.4); | |
| }) | |
| ); | |
| } | |
| @Override | |
| public void initialize_loop() { | |
| super.run(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment