mirror of
https://github.com/TimeCrafters/UltimateGoal.git
synced 2025-12-15 22:02:33 +00:00
Aubrey
This commit is contained in:
2
.idea/compiler.xml
generated
2
.idea/compiler.xml
generated
@@ -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
2
.idea/misc.xml
generated
@@ -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">
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user