Compare commits

...

3 commits

Author SHA1 Message Date
RiftBladeMc a675d064a3 TEST 2022-02-11 21:29:09 -06:00
RiftBladeMc ca483abd5a Merge branch 'kyleexperimentalbranch' of https://git.karx.xyz/karx/FtcRobotController 2022-02-11 21:13:27 -06:00
RiftBladeMc 684aac8aff Convert double to String better. 2022-02-10 19:35:04 -06:00
16 changed files with 17 additions and 18 deletions

View file

@ -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">

View file

@ -539,4 +539,4 @@ public class API {
0b001000000000000 * this.getMiscButtons();
}
}
}
}

View file

@ -43,4 +43,4 @@ public abstract class AutonFour extends LinearOpModeWithMovement {
api.pause(blue ? 0.47 : 0.6);
movement.stop();
}
}
}

View file

@ -44,4 +44,4 @@ public class AutonFourB extends AutonFour {
// api.pause(0.47);
// movement.stop();
}
}
}

View file

@ -44,4 +44,4 @@ public class AutonFourR extends AutonFour {
// api.pause(0.6);
// movement.stop();
}
}
}

View file

@ -7,4 +7,4 @@ public class ExampleReplayer extends Replayer {
public ExampleReplayer() {
super("recording1.json");
}
}
}

View file

@ -7,5 +7,4 @@ public enum GameMotor {
public final String name;
GameMotor(String name) { this.name = name; }
}
}

View file

@ -14,4 +14,4 @@ public class GameMotors {
lift = api.new Motor(GameMotor.LIFT.name);
carousel = api.new Motor(GameMotor.CAROUSEL.name);
}
}
}

View file

@ -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;
}
}
}

View file

@ -91,4 +91,4 @@ public class GamepadRecord extends Gamepad {
prevGuide = gamepad1.guide;
}
}
}

View file

@ -14,4 +14,4 @@ public abstract class LinearOpModeWithAPI extends LinearOpMode {
api = new API(this, useLogFile);
motors = new GameMotors(api);
}
}
}

View file

@ -24,4 +24,4 @@ public abstract class LinearOpModeWithMovement extends LinearOpModeWithAPI {
super.construct(useLogFile);
movement = new MovementAPI(api, fl, fr, bl, br);
}
}
}

View file

@ -3,4 +3,4 @@ package org.firstinspires.ftc.teamcode;
public class MainOpModeName {
@SuppressWarnings("SpellCheckingInspection")
public final static String name = "AAAAAAAAA";
}
}

View file

@ -131,4 +131,4 @@ public class MovementAPI {
bl.stop();
br.stop();
}
}
}

View file

@ -80,4 +80,4 @@ public class Replayer extends OpModeWithMovement {
this.requestOpModeStop();
nextIndex = -1;
}
}
}

View file

@ -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 {}