Update test files
This commit is contained in:
@ -34,7 +34,7 @@ import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
|
|||||||
import com.qualcomm.robotcore.hardware.Gamepad;
|
import com.qualcomm.robotcore.hardware.Gamepad;
|
||||||
import com.qualcomm.robotcore.util.ElapsedTime;
|
import com.qualcomm.robotcore.util.ElapsedTime;
|
||||||
|
|
||||||
import org.firstinspires.ftc.teamcode.subsystem.ArmSubsystem;
|
import org.firstinspires.ftc.teamcode.subsystem.ArmActionsSubsystem;
|
||||||
|
|
||||||
@TeleOp(name = "Arm Test", group = "Debug")
|
@TeleOp(name = "Arm Test", group = "Debug")
|
||||||
public class ArmTest extends LinearOpMode {
|
public class ArmTest extends LinearOpMode {
|
||||||
@ -48,7 +48,7 @@ public class ArmTest extends LinearOpMode {
|
|||||||
/*
|
/*
|
||||||
* Instantiate Arm
|
* Instantiate Arm
|
||||||
*/
|
*/
|
||||||
ArmSubsystem arm = new ArmSubsystem(hardwareMap, telemetry);
|
ArmActionsSubsystem arm = new ArmActionsSubsystem(hardwareMap);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Instantiate gamepad state holders
|
* Instantiate gamepad state holders
|
||||||
@ -74,10 +74,6 @@ public class ArmTest extends LinearOpMode {
|
|||||||
arm.toBucketPosition();
|
arm.toBucketPosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentGamepad1.cross && !previousGamepad1.cross) {
|
|
||||||
arm.switchState();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (currentGamepad1.left_bumper && !previousGamepad1.left_bumper) {
|
if (currentGamepad1.left_bumper && !previousGamepad1.left_bumper) {
|
||||||
arm.setPosition(arm.getPosition() - .05);
|
arm.setPosition(arm.getPosition() - .05);
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,8 @@ import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
|
|||||||
import com.qualcomm.robotcore.hardware.Gamepad;
|
import com.qualcomm.robotcore.hardware.Gamepad;
|
||||||
import com.qualcomm.robotcore.util.ElapsedTime;
|
import com.qualcomm.robotcore.util.ElapsedTime;
|
||||||
|
|
||||||
import org.firstinspires.ftc.teamcode.subsystem.ClawSubsystem;
|
import org.firstinspires.ftc.teamcode.subsystem.ClawActionsSubsystem;
|
||||||
|
|
||||||
|
|
||||||
@TeleOp(name = "Claw Test", group = "Debug")
|
@TeleOp(name = "Claw Test", group = "Debug")
|
||||||
public class ClawTest extends LinearOpMode {
|
public class ClawTest extends LinearOpMode {
|
||||||
@ -48,7 +49,7 @@ public class ClawTest extends LinearOpMode {
|
|||||||
/*
|
/*
|
||||||
* Instantiate Claw
|
* Instantiate Claw
|
||||||
*/
|
*/
|
||||||
ClawSubsystem claw = new ClawSubsystem(hardwareMap, telemetry);
|
ClawActionsSubsystem claw = new ClawActionsSubsystem(hardwareMap);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Instantiate gamepad state holders
|
* Instantiate gamepad state holders
|
||||||
|
@ -36,7 +36,6 @@ import com.qualcomm.robotcore.hardware.Gamepad;
|
|||||||
import com.qualcomm.robotcore.util.ElapsedTime;
|
import com.qualcomm.robotcore.util.ElapsedTime;
|
||||||
|
|
||||||
import org.firstinspires.ftc.teamcode.subsystem.WristActionsSubsystem;
|
import org.firstinspires.ftc.teamcode.subsystem.WristActionsSubsystem;
|
||||||
import org.firstinspires.ftc.teamcode.subsystem.WristSubsystem;
|
|
||||||
|
|
||||||
@TeleOp(name = "Wrist Test", group = "Debug")
|
@TeleOp(name = "Wrist Test", group = "Debug")
|
||||||
public class WristTest extends LinearOpMode {
|
public class WristTest extends LinearOpMode {
|
||||||
|
Reference in New Issue
Block a user