Skip to content

Instantly share code, notes, and snippets.

@zax71
Created April 1, 2026 22:01
Show Gist options
  • Select an option

  • Save zax71/a28c4afbfa5aae0a50f0c191d9e8e5f1 to your computer and use it in GitHub Desktop.

Select an option

Save zax71/a28c4afbfa5aae0a50f0c191d9e8e5f1 to your computer and use it in GitHub Desktop.
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