Compare commits
3 commits
1cb623f843
...
a675d064a3
Author | SHA1 | Date | |
---|---|---|---|
a675d064a3 | |||
ca483abd5a | |||
684aac8aff |
|
@ -10,7 +10,7 @@
|
|||
<option name="OUTPUT_DIRECTORY" value="$PROJECT_DIR$/javadoc" />
|
||||
<option name="OPTION_SCOPE" value="public" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="Android Studio default JDK" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
|
|
|
@ -539,4 +539,4 @@ public class API {
|
|||
0b001000000000000 * this.getMiscButtons();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -43,4 +43,4 @@ public abstract class AutonFour extends LinearOpModeWithMovement {
|
|||
api.pause(blue ? 0.47 : 0.6);
|
||||
movement.stop();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -44,4 +44,4 @@ public class AutonFourB extends AutonFour {
|
|||
// api.pause(0.47);
|
||||
// movement.stop();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -44,4 +44,4 @@ public class AutonFourR extends AutonFour {
|
|||
// api.pause(0.6);
|
||||
// movement.stop();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -7,4 +7,4 @@ public class ExampleReplayer extends Replayer {
|
|||
public ExampleReplayer() {
|
||||
super("recording1.json");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -7,5 +7,4 @@ public enum GameMotor {
|
|||
public final String name;
|
||||
|
||||
GameMotor(String name) { this.name = name; }
|
||||
}
|
||||
|
||||
}
|
|
@ -14,4 +14,4 @@ public class GameMotors {
|
|||
lift = api.new Motor(GameMotor.LIFT.name);
|
||||
carousel = api.new Motor(GameMotor.CAROUSEL.name);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -34,7 +34,7 @@ public abstract class Gamepad extends OpModeWithMovement {
|
|||
double currentSpeed = gamepad1.y ? 1 : slowMode ? 0.35 : speed;
|
||||
movement.move(-gamepad1.left_stick_y, gamepad1.left_stick_x, gamepad1.right_stick_x, currentSpeed, true);
|
||||
|
||||
api.print("Speed", speed + ""); // i don't know how to do this better
|
||||
api.print("Speed", Double.toString(speed));
|
||||
api.print("Slow mode", slowMode ? "true" : "false");
|
||||
|
||||
if (gamepad1.x && !prevX) slowMode = !slowMode;
|
||||
|
@ -47,4 +47,4 @@ public abstract class Gamepad extends OpModeWithMovement {
|
|||
|
||||
prevX = gamepad1.x;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -91,4 +91,4 @@ public class GamepadRecord extends Gamepad {
|
|||
|
||||
prevGuide = gamepad1.guide;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -14,4 +14,4 @@ public abstract class LinearOpModeWithAPI extends LinearOpMode {
|
|||
api = new API(this, useLogFile);
|
||||
motors = new GameMotors(api);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -24,4 +24,4 @@ public abstract class LinearOpModeWithMovement extends LinearOpModeWithAPI {
|
|||
super.construct(useLogFile);
|
||||
movement = new MovementAPI(api, fl, fr, bl, br);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -3,4 +3,4 @@ package org.firstinspires.ftc.teamcode;
|
|||
public class MainOpModeName {
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
public final static String name = "AAAAAAAAA";
|
||||
}
|
||||
}
|
|
@ -131,4 +131,4 @@ public class MovementAPI {
|
|||
bl.stop();
|
||||
br.stop();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -80,4 +80,4 @@ public class Replayer extends OpModeWithMovement {
|
|||
this.requestOpModeStop();
|
||||
nextIndex = -1;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -3,4 +3,4 @@ package org.firstinspires.ftc.teamcode;
|
|||
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
|
||||
|
||||
@TeleOp(name = MainOpModeName.name)
|
||||
public class TotallyGamepaad extends Gamepad {}
|
||||
public class TotallyGamepaad extends Gamepad {}
|
Loading…
Reference in a new issue