File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Ptechnodactyl/src/main/java/org/firstinspires/ftc/ptechnodactyl Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -107,8 +107,8 @@ public void execute() {
107107
108108 // The math & signs looks wonky, because this makes things field-relative
109109 // (Remember that "3 O'Clock" is zero degrees)
110- double yvalue = - y .getAsDouble ();
111- double xvalue = - x .getAsDouble ();
110+ double yvalue = y .getAsDouble ();
111+ double xvalue = x .getAsDouble ();
112112 if (driveStraighten != null ) {
113113 if (driveStraighten .getAsDouble () > 0.7 ) {
114114 if (Math .abs (yvalue ) > Math .abs (xvalue )) xvalue = 0 ;
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ public class OneController {
2323 public CommandButton resetGyroButton , turboButton , snailButton ;
2424 public CommandButton increment ;
2525 public CommandButton decrement ;
26- public CommandButton intake ;
2726
2827 public OneController (CommandGamepad g , Robot r ) {
2928 robot = r ;
@@ -44,7 +43,6 @@ private void AssignNamedControllerButton() {
4443 driveRightStick = gamepad .rightStick ;
4544 turboButton = gamepad .leftBumper ;
4645 snailButton = gamepad .rightBumper ;
47- intake = gamepad .dpadRight ;
4846 }
4947
5048 public void BindControls () {
@@ -63,7 +61,6 @@ public void bindClawSubsystemControls() {
6361 ArmHorizontal .whenPressed (robot .clawSubsystem ::setArmHorizontal );
6462 increment .whenPressed (robot .clawSubsystem ::incrementn );
6563 decrement .whenPressed (robot .clawSubsystem ::decrement );
66- intake .whenPressed (robot .clawSubsystem ::setArmIntake );
6764 }
6865
6966 public void bindDriveControls () {
Original file line number Diff line number Diff line change 33import com .acmerobotics .dashboard .FtcDashboard ;
44import com .acmerobotics .dashboard .telemetry .MultipleTelemetry ;
55import com .qualcomm .robotcore .eventloop .opmode .TeleOp ;
6+ import com .technototes .library .command .CommandScheduler ;
67import com .technototes .library .logger .Loggable ;
78import com .technototes .library .structure .CommandOpMode ;
89import org .firstinspires .ftc .ptechnodactyl .Hardware ;
910import org .firstinspires .ftc .ptechnodactyl .Robot ;
11+ import org .firstinspires .ftc .ptechnodactyl .commands .EZCmd ;
1012import org .firstinspires .ftc .ptechnodactyl .controllers .OneController ;
1113
1214@ TeleOp (name = "OneController" )
@@ -24,5 +26,6 @@ public void uponInit() {
2426 hardware = new Hardware (hardwareMap );
2527 robot = new Robot (hardware );
2628 driver = new OneController (driverGamepad , robot );
29+ CommandScheduler .register (robot .clawSubsystem );
2730 }
2831}
You can’t perform that action at this time.
0 commit comments