Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

16750 tuesday auto things, added a net scoring opmode #68

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,16 @@ public class AutoConstants {


//New testing constants for this year's game
public static ConfigurablePoseD NET_START = new ConfigurablePoseD(35, 63, 0);
public static ConfigurablePoseD START = new ConfigurablePoseD(35, 63, 0);
public static ConfigurablePoseD OBS_START = new ConfigurablePoseD(22, -65, 90);
public static ConfigurablePoseD NETSCORING = new ConfigurablePoseD(55, 55, 45);
public static ConfigurablePoseD NETSCORING_TEST = new ConfigurablePoseD(55, 55, 45);
public static ConfigurablePoseD NETSCORING_CLEAR = new ConfigurablePoseD(45, 35, -45);
public static ConfigurablePoseD SPLINETEST1 = new ConfigurablePoseD(0, -55, 0);
public static ConfigurablePoseD SPLINETEST2 = new ConfigurablePoseD(55, 0, 0);
public static ConfigurablePoseD OBS_PARK = new ConfigurablePoseD(62, -6, 90);


public static ConfigurablePoseD NETSCORING = new ConfigurablePoseD(55, 55, 45);
public static ConfigurablePoseD NET_START = new ConfigurablePoseD(35, 63, 0);
public static ConfigurablePoseD NETCLEAR = new ConfigurablePoseD(52, 52, 45);
public static ConfigurablePoseD INTAKE1 = new ConfigurablePoseD(47, 40, 90);
public static ConfigurablePoseD INTAKE2 = new ConfigurablePoseD(60, 35, 90);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static class Connected {
public static boolean VERTICALSLIDESUBSYSTEM = true;
public static boolean HORIZONTALSLIDESUBSYSTEM = true;
public static boolean BUCKET = false;
public static boolean ODOSUBSYSTEM = false;
public static boolean ODOSUBSYSTEM = true;
public static boolean SAFETYSUBSYSTEM = false;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package org.firstinspires.ftc.sixteen750.opmodes.auto;

import com.acmerobotics.dashboard.FtcDashboard;
import com.acmerobotics.dashboard.telemetry.MultipleTelemetry;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.technototes.library.command.CommandScheduler;
import com.technototes.library.command.SequentialCommandGroup;
import com.technototes.library.structure.CommandOpMode;
import com.technototes.library.util.Alliance;
import org.firstinspires.ftc.sixteen750.AutoConstants;
import org.firstinspires.ftc.sixteen750.Hardware;
import org.firstinspires.ftc.sixteen750.Robot;
import org.firstinspires.ftc.sixteen750.commands.auto.Paths;
import org.firstinspires.ftc.sixteen750.controls.DriverController;
import org.firstinspires.ftc.sixteen750.helpers.StartingPosition;

@Autonomous(name = "NetScoring")
@SuppressWarnings("unused")
public class NetScoring extends CommandOpMode {

public Robot robot;
public DriverController controls;
public Hardware hardware;

@Override
public void uponInit() {
telemetry = new MultipleTelemetry(telemetry, FtcDashboard.getInstance().getTelemetry());
hardware = new Hardware(hardwareMap);
robot = new Robot(hardware, Alliance.RED, StartingPosition.Observation);
robot.drivebase.setPoseEstimate(AutoConstants.FORWARD.toPose());
CommandScheduler.scheduleForState(
new SequentialCommandGroup(
Paths.SampleScoring(robot),
CommandScheduler::terminateOpMode
),
OpModeState.RUN
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public class Obs_Park extends CommandOpMode {
public void uponInit() {
telemetry = new MultipleTelemetry(telemetry, FtcDashboard.getInstance().getTelemetry());
hardware = new Hardware(hardwareMap);
robot = new Robot(hardware, Alliance.RED, StartingPosition.Net);
robot.drivebase.setPoseEstimate(AutoConstants.OBS_START.toPose());
robot = new Robot(hardware, Alliance.RED, StartingPosition.Observation);
robot.drivebase.setPoseEstimate(AutoConstants.BACKWARD.toPose());
CommandScheduler.scheduleForState(
new SequentialCommandGroup(Paths.Obs_Parking(robot), CommandScheduler::terminateOpMode),
OpModeState.RUN
Expand Down
Loading