mirror of
https://github.com/TimeCrafters/UltimateGoal.git
synced 2025-12-15 05:52:35 +00:00
moved cayden's stuff into his own package
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"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<bytecodeTargetLevel target="11" />
|
||||
<bytecodeTargetLevel target="1.8" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -32,7 +32,7 @@ public class AubreyFirstState extends CyberarmState {
|
||||
|
||||
}else {
|
||||
robot.driveFrontLeft.setPower(UwU);
|
||||
robot.driveBackRight.setPower(OwO);
|
||||
robot.driveFrontRight.setPower(OwO);
|
||||
robot.driveBackRight.setPower(OwO);
|
||||
robot.driveBackLeft.setPower(UwU);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.timecrafters.javaClass.aubrey;
|
||||
package org.timecrafters.javaClass.cayden;
|
||||
|
||||
import org.cyberarm.engine.V2.CyberarmState;
|
||||
import org.timecrafters.javaClass.samples.SampleRobot;
|
||||
@@ -4,8 +4,7 @@ import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
|
||||
|
||||
import org.cyberarm.engine.V2.CyberarmEngine;
|
||||
import org.timecrafters.UltimateGoal.Competition.Robot;
|
||||
import org.timecrafters.javaClass.aubrey.CaydenFirstState;
|
||||
import org.timecrafters.javaClass.spencer.SpencerFirstState;
|
||||
import org.timecrafters.javaClass.cayden.CaydenFirstState;
|
||||
|
||||
@Autonomous (name = "Cayden: First Program", group = "caden")
|
||||
public class CaydenFirstEngine extends CyberarmEngine {
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package org.timecrafters.javaClass.samples.samples;
|
||||
|
||||
import org.cyberarm.engine.V2.CyberarmState;
|
||||
import org.timecrafters.javaClass.samples.SampleRobot;
|
||||
|
||||
public class BlankStuff extends CyberarmState {
|
||||
|
||||
//here, you'll find some of your variables. you can add more as you need them.
|
||||
private SampleRobot robot;
|
||||
|
||||
//This is the constructor. It lets other code bits run use the code you put here
|
||||
public BlankStuff(SampleRobot robot) {
|
||||
this.robot = robot;
|
||||
}
|
||||
|
||||
//This is a method. methods are bits of code that can be run elsewhere.
|
||||
//This one is set up to repeat every few milliseconds
|
||||
@Override
|
||||
public void exec() {
|
||||
|
||||
double targetDistance = robot.inchesToTicks(12);
|
||||
if (robot.encoderLeft.getCurrentPosition() <= targetDistance) {
|
||||
robot.driveBackRight.setPower(1);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -27,7 +27,7 @@
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package org.samples;
|
||||
package org.timecrafters.javaClass.samples.samples;
|
||||
|
||||
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
|
||||
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
|
||||
@@ -26,7 +26,7 @@
|
||||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package org.samples;
|
||||
package org.timecrafters.javaClass.samples.samples;
|
||||
|
||||
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
|
||||
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
|
||||
@@ -27,7 +27,7 @@
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package org.samples;
|
||||
package org.timecrafters.javaClass.samples.samples;
|
||||
|
||||
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
|
||||
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
|
||||
@@ -14,7 +14,6 @@ public class SpencerDriveFoward extends CyberarmState {
|
||||
|
||||
@Override
|
||||
public void exec() {
|
||||
if ()
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user