Fixed misspelling
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
package org.firstinspires.ftc.teamcode.commetbots;
|
||||
package org.firstinspires.ftc.teamcode.cometbots;
|
||||
|
||||
import com.acmerobotics.dashboard.FtcDashboard;
|
||||
import com.acmerobotics.dashboard.config.Config;
|
@ -1,22 +1,14 @@
|
||||
package org.firstinspires.ftc.teamcode.commetbots;
|
||||
|
||||
import static org.firstinspires.ftc.teamcode.PedroConstants.BACK_LEFT_MOTOR;
|
||||
import static org.firstinspires.ftc.teamcode.PedroConstants.BACK_RIGHT_MOTOR;
|
||||
import static org.firstinspires.ftc.teamcode.PedroConstants.FRONT_LEFT_MOTOR;
|
||||
import static org.firstinspires.ftc.teamcode.PedroConstants.FRONT_RIGHT_MOTOR;
|
||||
package org.firstinspires.ftc.teamcode.cometbots;
|
||||
|
||||
import com.acmerobotics.dashboard.FtcDashboard;
|
||||
import com.acmerobotics.dashboard.config.Config;
|
||||
import com.acmerobotics.dashboard.telemetry.MultipleTelemetry;
|
||||
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
|
||||
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
|
||||
import com.qualcomm.robotcore.hardware.DcMotor;
|
||||
import com.qualcomm.robotcore.hardware.DcMotorEx;
|
||||
|
||||
import org.firstinspires.ftc.robotcore.external.Telemetry;
|
||||
import org.firstinspires.ftc.teamcode.pedroPathing.follower.Follower;
|
||||
import org.firstinspires.ftc.teamcode.pedroPathing.localization.Pose;
|
||||
import org.firstinspires.ftc.teamcode.pedroPathing.pathGeneration.BezierCurve;
|
||||
import org.firstinspires.ftc.teamcode.pedroPathing.pathGeneration.BezierLine;
|
||||
import org.firstinspires.ftc.teamcode.pedroPathing.pathGeneration.PathChain;
|
||||
import org.firstinspires.ftc.teamcode.pedroPathing.pathGeneration.Point;
|
@ -1,4 +1,4 @@
|
||||
package org.firstinspires.ftc.teamcode.commetbots;
|
||||
package org.firstinspires.ftc.teamcode.cometbots;
|
||||
|
||||
import com.acmerobotics.dashboard.FtcDashboard;
|
||||
import com.acmerobotics.dashboard.config.Config;
|
@ -1,4 +1,4 @@
|
||||
package org.firstinspires.ftc.teamcode.commetbots;
|
||||
package org.firstinspires.ftc.teamcode.cometbots;
|
||||
|
||||
import com.acmerobotics.dashboard.FtcDashboard;
|
||||
import com.acmerobotics.dashboard.config.Config;
|
@ -1,4 +1,4 @@
|
||||
package org.firstinspires.ftc.teamcode.commetbots;
|
||||
package org.firstinspires.ftc.teamcode.cometbots;
|
||||
|
||||
import com.acmerobotics.dashboard.FtcDashboard;
|
||||
import com.acmerobotics.dashboard.config.Config;
|
@ -1,4 +1,4 @@
|
||||
package org.firstinspires.ftc.teamcode.commetbots;
|
||||
package org.firstinspires.ftc.teamcode.cometbots;
|
||||
|
||||
import com.acmerobotics.dashboard.FtcDashboard;
|
||||
import com.acmerobotics.dashboard.config.Config;
|
||||
@ -10,7 +10,6 @@ import org.firstinspires.ftc.robotcore.external.Telemetry;
|
||||
import org.firstinspires.ftc.teamcode.pedroPathing.follower.Follower;
|
||||
import org.firstinspires.ftc.teamcode.pedroPathing.localization.Pose;
|
||||
import org.firstinspires.ftc.teamcode.pedroPathing.pathGeneration.BezierCurve;
|
||||
import org.firstinspires.ftc.teamcode.pedroPathing.pathGeneration.BezierLine;
|
||||
import org.firstinspires.ftc.teamcode.pedroPathing.pathGeneration.PathChain;
|
||||
import org.firstinspires.ftc.teamcode.pedroPathing.pathGeneration.Point;
|
||||
|
@ -27,7 +27,7 @@
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package org.firstinspires.ftc.teamcode.commetbots;
|
||||
package org.firstinspires.ftc.teamcode.cometbots;
|
||||
|
||||
import static org.firstinspires.ftc.teamcode.PedroConstants.BACK_ENCODER;
|
||||
import static org.firstinspires.ftc.teamcode.PedroConstants.BACK_ENCODER_DIRECTION;
|
||||
@ -44,7 +44,6 @@ import static org.firstinspires.ftc.teamcode.PedroConstants.LEFT_ENCODER_DIRECTI
|
||||
import static org.firstinspires.ftc.teamcode.PedroConstants.RIGHT_ENCODER;
|
||||
import static org.firstinspires.ftc.teamcode.PedroConstants.RIGHT_ENCODER_DIRECTION;
|
||||
|
||||
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
|
||||
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
|
||||
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
|
||||
import com.qualcomm.robotcore.hardware.DcMotor;
|
@ -1,5 +1,4 @@
|
||||
package org.firstinspires.ftc.teamcode.commetbots;
|
||||
import static android.os.SystemClock.sleep;
|
||||
package org.firstinspires.ftc.teamcode.cometbots;
|
||||
|
||||
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
|
||||
import com.acmerobotics.dashboard.FtcDashboard;
|
@ -1,4 +1,4 @@
|
||||
package org.firstinspires.ftc.teamcode.commetbots;
|
||||
package org.firstinspires.ftc.teamcode.cometbots;
|
||||
|
||||
import com.acmerobotics.dashboard.FtcDashboard;
|
||||
import com.acmerobotics.dashboard.config.Config;
|
||||
@ -9,7 +9,6 @@ import com.qualcomm.robotcore.eventloop.opmode.OpMode;
|
||||
import org.firstinspires.ftc.robotcore.external.Telemetry;
|
||||
import org.firstinspires.ftc.teamcode.pedroPathing.follower.Follower;
|
||||
import org.firstinspires.ftc.teamcode.pedroPathing.localization.Pose;
|
||||
import org.firstinspires.ftc.teamcode.pedroPathing.pathGeneration.BezierCurve;
|
||||
import org.firstinspires.ftc.teamcode.pedroPathing.pathGeneration.BezierLine;
|
||||
import org.firstinspires.ftc.teamcode.pedroPathing.pathGeneration.PathChain;
|
||||
import org.firstinspires.ftc.teamcode.pedroPathing.pathGeneration.Point;
|
@ -0,0 +1,4 @@
|
||||
package org.firstinspires.ftc.teamcode.cometbots;
|
||||
|
||||
public class BluenbAutov1 {
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package org.firstinspires.ftc.teamcode.commetbots;
|
||||
package org.firstinspires.ftc.teamcode.cometbots;
|
||||
|
||||
import static org.firstinspires.ftc.teamcode.util.action.FieldConstants.blueBucketStartPose;
|
||||
|
@ -27,7 +27,7 @@
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package org.firstinspires.ftc.teamcode.commetbots;
|
||||
package org.firstinspires.ftc.teamcode.cometbots;
|
||||
|
||||
import static org.firstinspires.ftc.teamcode.PedroConstants.BACK_ENCODER;
|
||||
import static org.firstinspires.ftc.teamcode.PedroConstants.BACK_ENCODER_DIRECTION;
|
@ -1,120 +0,0 @@
|
||||
package org.firstinspires.ftc.teamcode.commetbots;
|
||||
|
||||
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
|
||||
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
|
||||
|
||||
import org.firstinspires.ftc.teamcode.pedroPathing.follower.Follower;
|
||||
import org.firstinspires.ftc.teamcode.runmodes.Auto;
|
||||
import org.firstinspires.ftc.teamcode.util.action.Actions;
|
||||
import org.firstinspires.ftc.teamcode.util.action.SequentialAction;
|
||||
|
||||
|
||||
@Autonomous(name = "BlueBucket", group = "B")
|
||||
public class BlueBucket extends OpMode {
|
||||
public int pathState;
|
||||
public Auto auto;
|
||||
|
||||
@Override
|
||||
public void init() {
|
||||
auto = new Auto(hardwareMap, telemetry, new Follower(hardwareMap), true, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void start() {
|
||||
auto.start();
|
||||
// setPathState(0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loop() {
|
||||
auto.update();
|
||||
pathUpdate();
|
||||
|
||||
telemetry.addData("state", pathState);
|
||||
telemetry.addData("x", auto.follower.getPose().getX());
|
||||
telemetry.addData("y", auto.follower.getPose().getY());
|
||||
telemetry.addData("h", auto.follower.getPose().getHeading());
|
||||
}
|
||||
|
||||
public void pathUpdate() {
|
||||
switch (pathState) {
|
||||
case 0:
|
||||
Actions.runBlocking(auto.claw.closeClaw);
|
||||
//Actions.runBlocking(auto.lift.toHighChamber);
|
||||
//auto.follower.followPath(auto.preload);
|
||||
//setPathState(1);
|
||||
break;
|
||||
case 1:
|
||||
if (!auto.follower.isBusy()) {
|
||||
|
||||
// if (auto.lift.isAtTarget()) {
|
||||
// Actions.runBlocking(auto.lift.releaseHighChamber);
|
||||
// }
|
||||
|
||||
// if (auto.lift.isAtTarget()) {
|
||||
// Actions.runBlocking(auto.claw.openClaw);
|
||||
// }
|
||||
|
||||
// Actions.runBlocking(auto.lift.toZero);
|
||||
// auto.follower.followPath(auto.element1);
|
||||
// Actions.runBlocking(auto.intake.pivotGround);
|
||||
// Actions.runBlocking(auto.intake.spinIn);
|
||||
setPathState(2);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
if (!auto.follower.isBusy()) {
|
||||
auto.follower.followPath(auto.score1);
|
||||
// Actions.runBlocking(auto.intake.spinStop);
|
||||
// Actions.runBlocking(auto.intake.pivotTransfer);
|
||||
setPathState(3);
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
if (!auto.follower.isBusy()) {
|
||||
Actions.runBlocking(
|
||||
new SequentialAction(
|
||||
// auto.transfer,
|
||||
// auto.lift.toLowBucket
|
||||
)
|
||||
);
|
||||
|
||||
// if (auto.lift.isAtTarget()) {
|
||||
// Actions.runBlocking(auto.box.toScoring);
|
||||
// }
|
||||
|
||||
auto.follower.followPath(auto.element2);
|
||||
setPathState(4);
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
if (!auto.follower.isBusy()) {
|
||||
auto.follower.followPath(auto.score2);
|
||||
setPathState(5);
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
if (!auto.follower.isBusy()) {
|
||||
auto.follower.followPath(auto.element3);
|
||||
setPathState(6);
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
if (!auto.follower.isBusy()) {
|
||||
auto.follower.followPath(auto.score3);
|
||||
setPathState(7);
|
||||
}
|
||||
break;
|
||||
case 7:
|
||||
if (!auto.follower.isBusy()) {
|
||||
auto.follower.followPath(auto.park);
|
||||
setPathState(-1);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void setPathState(int x) {
|
||||
pathState = x;
|
||||
}
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
package org.firstinspires.ftc.teamcode.commetbots;
|
||||
|
||||
public class BluenbAutov1 {
|
||||
}
|
Reference in New Issue
Block a user