Skip to content

Commit aa010c0

Browse files
Kooolpoolkevinfrei
authored andcommitted
ptechnodactyl works now and is done
1 parent d4cf618 commit aa010c0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Ptechnodactyl/src/main/java/org/firstinspires/ftc/ptechnodactyl/commands/JoystickDriveCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

Ptechnodactyl/src/main/java/org/firstinspires/ftc/ptechnodactyl/controllers/OneController.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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() {

Ptechnodactyl/src/main/java/org/firstinspires/ftc/ptechnodactyl/opmodes/tele/oneController.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
import com.acmerobotics.dashboard.FtcDashboard;
44
import com.acmerobotics.dashboard.telemetry.MultipleTelemetry;
55
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
6+
import com.technototes.library.command.CommandScheduler;
67
import com.technototes.library.logger.Loggable;
78
import com.technototes.library.structure.CommandOpMode;
89
import org.firstinspires.ftc.ptechnodactyl.Hardware;
910
import org.firstinspires.ftc.ptechnodactyl.Robot;
11+
import org.firstinspires.ftc.ptechnodactyl.commands.EZCmd;
1012
import 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
}

0 commit comments

Comments
 (0)