mirror of
https://github.com/TimeCrafters/CenterStage
synced 2025-12-12 23:32:36 +00:00
Began helping Spencer with a simple drivetrain code for autonomous
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package org.timecrafters.CenterStage.Autonomous.SodiStates;
|
||||
|
||||
import org.timecrafters.CenterStage.Common.CompetitionRobotV1;
|
||||
|
||||
import dev.cyberarm.engine.V2.CyberarmState;
|
||||
|
||||
public class SodiBlueCrabDriveStatev1 extends CyberarmState {
|
||||
final private CompetitionRobotV1 robot;
|
||||
|
||||
public SodiBlueCrabDriveStatev1() {
|
||||
robot = new CompetitionRobotV1("Assignment");
|
||||
robot.setup();
|
||||
}
|
||||
@Override
|
||||
public void init() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void exec() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -97,7 +97,7 @@ public class SodiPizzaTeleOPState extends CyberarmState {
|
||||
robot.rightFront.setPower(rfPower * drivePower);
|
||||
robot.rightBack.setPower(rbPower * drivePower);
|
||||
|
||||
if (engine.gamepad1.left_stick_x > 0.1) {
|
||||
if (engine.gamepad1.left_stick_x >= 0.1 || engine.gamepad1.left_stick_y >= 0.1 || engine.gamepad1.right_stick_x >= 0.1) {
|
||||
robot.leftBack.setPower(lbPower);
|
||||
robot.rightBack.setPower(rbPower);
|
||||
robot.leftFront.setPower(lfPower);
|
||||
|
||||
Reference in New Issue
Block a user