File tree Expand file tree Collapse file tree 2 files changed +43
-3
lines changed
Hoops/src/main/java/org/firstinspires/ftc/hoops/opmodes/tele Expand file tree Collapse file tree 2 files changed +43
-3
lines changed Original file line number Diff line number Diff line change 1+ package org .firstinspires .ftc .hoops .opmodes .tele ;
2+
3+ import com .acmerobotics .dashboard .FtcDashboard ;
4+ import com .acmerobotics .dashboard .telemetry .MultipleTelemetry ;
5+ import com .qualcomm .robotcore .eventloop .opmode .TeleOp ;
6+ import com .technototes .library .command .CommandScheduler ;
7+ import com .technototes .library .structure .CommandOpMode ;
8+
9+ import org .firstinspires .ftc .hoops .Hardware ;
10+ import org .firstinspires .ftc .hoops .Robot ;
11+ import org .firstinspires .ftc .hoops .Setup ;
12+ import org .firstinspires .ftc .hoops .commands .EZCmd ;
13+
14+ @ TeleOp (name = "AllInOneTele" )
15+ @ SuppressWarnings ("unused" )
16+ public class AllInOneTele extends CommandOpMode {
17+
18+ public Robot robot ;
19+ public org .firstinspires .ftc .hoops .controllers .AllinOneController Allcontrols ;
20+
21+ public Hardware hardware ;
22+
23+ @ Override
24+ public void uponInit () {
25+ telemetry = new MultipleTelemetry (telemetry , FtcDashboard .getInstance ().getTelemetry ());
26+ hardware = new Hardware (hardwareMap );
27+ robot = new Robot (hardware );
28+ if (Setup .Connected .DRIVEBASE ) {
29+ Allcontrols = new org .firstinspires .ftc .hoops .controllers .AllinOneController (
30+ driverGamepad ,
31+ robot
32+ );
33+
34+ CommandScheduler .scheduleForState (
35+ EZCmd .Drive .ResetGyro (robot .drivebaseSubsystem ),
36+ OpModeState .INIT
37+ );
38+ }
39+ }
40+ }
Original file line number Diff line number Diff line change 1- package org .firstinspires .ftc .hoops .controllers ;
1+ package org .firstinspires .ftc .hoops .opmodes . tele ;
22
33import com .acmerobotics .dashboard .FtcDashboard ;
44import com .acmerobotics .dashboard .telemetry .MultipleTelemetry ;
55import com .qualcomm .robotcore .eventloop .opmode .TeleOp ;
66import com .technototes .library .command .CommandScheduler ;
77import com .technototes .library .structure .CommandOpMode ;
8- import com . technototes . library . util . Alliance ;
8+
99import org .firstinspires .ftc .hoops .Hardware ;
1010import org .firstinspires .ftc .hoops .Robot ;
1111import org .firstinspires .ftc .hoops .Setup ;
1212import org .firstinspires .ftc .hoops .commands .EZCmd ;
1313
14- @ TeleOp (name = "Driving w/Turbo! " )
14+ @ TeleOp (name = "TwoControllers " )
1515@ SuppressWarnings ("unused" )
1616public class TwoControllers extends CommandOpMode {
1717
You can’t perform that action at this time.
0 commit comments