This commit is contained in:
scottbadger777
2021-08-03 20:18:52 -05:00
parent a456b9a002
commit f84b3556ad
3 changed files with 20 additions and 3 deletions

2
.idea/compiler.xml generated
View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="CompilerConfiguration"> <component name="CompilerConfiguration">
<bytecodeTargetLevel target="1.8" /> <bytecodeTargetLevel target="11" />
</component> </component>
</project> </project>

2
.idea/misc.xml generated
View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">

View File

@@ -7,6 +7,9 @@ public class AubreyFirstState extends CyberarmState {
//here, you'll find some of your variables. you can add more as you need them. //here, you'll find some of your variables. you can add more as you need them.
private SampleRobot robot; private SampleRobot robot;
private double UwU;
private double OwO;
//This is the constructor. It lets other code bits run use the code you put here //This is the constructor. It lets other code bits run use the code you put here
public AubreyFirstState(SampleRobot robot) { public AubreyFirstState(SampleRobot robot) {
@@ -17,6 +20,20 @@ public class AubreyFirstState extends CyberarmState {
//This one is set up to repeat every few milliseconds //This one is set up to repeat every few milliseconds
@Override @Override
public void exec() { public void exec() {
UwU= engine.gamepad1.left_stick_y ;
OwO= engine.gamepad1. right_stick_y;
robot.driveBackLeft.setPower(UwU);
robot.driveFrontLeft.setPower(UwU);
robot.driveBackRight. setPower(OwO);
robot.driveBackLeft. setPower(OwO);
}
@Override
public void telemetry() {
engine. telemetry.addData("uMu",UwU);
engine. telemetry. addData("OmO", OwO);
} }
} }