-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
195 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
47 changes: 47 additions & 0 deletions
47
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/opmodes/teleop/OwenMain.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package org.firstinspires.ftc.teamcode.opmodes.teleop; | ||
|
||
import com.acmerobotics.dashboard.FtcDashboard; | ||
import com.acmerobotics.dashboard.telemetry.MultipleTelemetry; | ||
import com.arcrobotics.ftclib.command.CommandScheduler; | ||
import com.qualcomm.robotcore.eventloop.opmode.TeleOp; | ||
|
||
import org.firstinspires.ftc.teamcode.CommandRobot; | ||
import org.firstinspires.ftc.teamcode.utils.commands.OpModeCore; | ||
|
||
@TeleOp(name = "Owen's Main") | ||
public class OwenMain extends OpModeCore { | ||
private CommandRobot robot; | ||
private MultipleTelemetry multipleTelemetry; | ||
|
||
public void initialize() { | ||
this.multipleTelemetry = new MultipleTelemetry(telemetry, FtcDashboard.getInstance().getTelemetry()); | ||
|
||
this.robot = new CommandRobot( | ||
super.hardwareMap, | ||
this.multipleTelemetry, | ||
super.gamepad1, | ||
super.gamepad2, | ||
this, | ||
CommandRobot.TeleOpMode.OWEN | ||
); | ||
} | ||
|
||
@Override | ||
public void runOpMode() { | ||
CommandScheduler.getInstance().enable(); | ||
|
||
this.initialize(); | ||
super.waitForStart(); | ||
|
||
this.robot.startThreads(); | ||
while (!isStopRequested() && opModeIsActive()) { | ||
super.resetCycle(); | ||
CommandScheduler.getInstance().run(); | ||
|
||
super.logCycles(); | ||
super.telemetry.update(); | ||
} | ||
|
||
super.end(); | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/opmodes/teleop/RyanMain.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package org.firstinspires.ftc.teamcode.opmodes.teleop; | ||
|
||
import com.acmerobotics.dashboard.FtcDashboard; | ||
import com.acmerobotics.dashboard.telemetry.MultipleTelemetry; | ||
import com.arcrobotics.ftclib.command.CommandScheduler; | ||
import com.qualcomm.robotcore.eventloop.opmode.TeleOp; | ||
|
||
import org.firstinspires.ftc.teamcode.CommandRobot; | ||
import org.firstinspires.ftc.teamcode.utils.commands.OpModeCore; | ||
|
||
@TeleOp(name = "Ryan's Main") | ||
public class RyanMain extends OpModeCore { | ||
private CommandRobot robot; | ||
private MultipleTelemetry multipleTelemetry; | ||
|
||
public void initialize() { | ||
this.multipleTelemetry = new MultipleTelemetry(telemetry, FtcDashboard.getInstance().getTelemetry()); | ||
|
||
this.robot = new CommandRobot( | ||
super.hardwareMap, | ||
this.multipleTelemetry, | ||
super.gamepad1, | ||
super.gamepad2, | ||
this, | ||
CommandRobot.TeleOpMode.RYAN | ||
); | ||
} | ||
|
||
@Override | ||
public void runOpMode() { | ||
CommandScheduler.getInstance().enable(); | ||
|
||
this.initialize(); | ||
super.waitForStart(); | ||
|
||
this.robot.startThreads(); | ||
while (!isStopRequested() && opModeIsActive()) { | ||
super.resetCycle(); | ||
CommandScheduler.getInstance().run(); | ||
|
||
super.logCycles(); | ||
super.telemetry.update(); | ||
} | ||
|
||
super.end(); | ||
} | ||
} |