Skip to content

Commit fa5e6ac

Browse files
TechnototesLaptopkevinfrei
authored andcommitted
harshini 12/12/24
moved auto constants and paths into 20403
1 parent 852b263 commit fa5e6ac

File tree

3 files changed

+45
-9
lines changed

3 files changed

+45
-9
lines changed

MeepMeepTesting/src/main/java/com/example/meepmeeptesting/HarshiniTesting.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,22 @@ public static class AutoConstants {
4747
public static Pose2d REST = new Pose2d(0,0, toRadians(90));
4848
public static Pose2d SIDE = new Pose2d(48,0, toRadians(90));
4949

50+
//sample side auto "borrowed" from 16750
51+
public static Pose2d NETSCORING = new Pose2d(55, 57, -135);
52+
public static Pose2d NET_START = new Pose2d(35, 63, 180);
53+
public static Pose2d NET_AGAINST_THE_WALL = new Pose2d(35, 63, -90);
54+
public static Pose2d NETCLEAR = new Pose2d(52, 52, 45);
55+
public static Pose2d INTAKE1 = new Pose2d(47, 50, -90);
56+
public static Pose2d INTAKE2 = new Pose2d(57, 50, -90);
57+
public static Pose2d INTAKE3 = new Pose2d(53, 40, -30);
58+
public static Pose2d ASCENT = new Pose2d(23, 12, 0);
59+
public static Pose2d ASCENT_CLEAR = new Pose2d(35, 10, 0);
60+
// end of "borrowed" constants
61+
62+
5063
//public static Pose2d OBSERVATION_ZONE = new Pose2d(-60, 55, toRadians(135));
5164

65+
//sample side auto
5266
//Lines for Into the Deeeeeeeep
5367

5468
public static final Supplier<Trajectory> FORWARD_BACKWARD1 = () ->

Sixteen750/src/main/java/org/firstinspires/ftc/sixteen750/AutoConstants.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ public class AutoConstants {
4747
public static ConfigurablePoseD NETSCORING = new ConfigurablePoseD(55, 57, -135);
4848
public static ConfigurablePoseD NET_START = new ConfigurablePoseD(35, 63, 180);
4949
public static ConfigurablePoseD NET_AGAINST_THE_WALL = new ConfigurablePoseD(35, 63, -90);
50-
5150
public static ConfigurablePoseD NETCLEAR = new ConfigurablePoseD(52, 52, 45);
5251
public static ConfigurablePoseD INTAKE1 = new ConfigurablePoseD(47, 50, -90);
5352
public static ConfigurablePoseD INTAKE2 = new ConfigurablePoseD(57, 50, -90);

Twenty403/src/main/java/org/firstinspires/ftc/twenty403/AutoConstants.java

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,19 @@ public class AutoConstants {
7878
public static ConfigurablePoseD SUBMARINE = new ConfigurablePoseD(-5, 36, (90));
7979
public static ConfigurablePoseD OBSERVATION_ZONE = new ConfigurablePoseD(-46, 55, (90));
8080

81+
82+
//stolen constants from 16750 heehee
83+
public static ConfigurablePoseD NETSCORING = new ConfigurablePoseD(55, 57, -135);
84+
public static ConfigurablePoseD NET_START = new ConfigurablePoseD(35, 63, 180);
85+
public static ConfigurablePoseD NET_AGAINST_THE_WALL = new ConfigurablePoseD(35, 63, -90);
86+
public static ConfigurablePoseD NETCLEAR = new ConfigurablePoseD(52, 52, 45);
87+
public static ConfigurablePoseD INTAKE1 = new ConfigurablePoseD(47, 50, -90);
88+
public static ConfigurablePoseD INTAKE2 = new ConfigurablePoseD(57, 50, -90);
89+
public static ConfigurablePoseD INTAKE3 = new ConfigurablePoseD(53, 40, -30);
90+
public static ConfigurablePoseD ASCENT = new ConfigurablePoseD(23, 12, 0);
91+
public static ConfigurablePoseD ASCENT_CLEAR = new ConfigurablePoseD(35, 10, 0);
92+
//end of the crimes
93+
8194
public static final Function<Function<Pose2d, TrajectorySequenceBuilder>, TrajectorySequence>
8295
OBS_START_TO_OBS_PARK = b ->
8396
b.apply(OBS_START.toPose()).lineToLinearHeading(OBS_PARK.toPose()).build();
@@ -291,17 +304,27 @@ public class AutoConstants {
291304
.lineToLinearHeading(REST.toPose())
292305
.build();
293306

307+
// "borrowed" from 16750 sample side auto
308+
public static final Function<Function<Pose2d, TrajectorySequenceBuilder>, TrajectorySequence>
309+
START_TO_NETSCORING = b ->
310+
b.apply(NET_START.toPose()).lineToLinearHeading(NETSCORING.toPose()).build();
311+
public static final Function<Function<Pose2d, TrajectorySequenceBuilder>, TrajectorySequence>
312+
NETSCORING_TO_INTAKE1 = b ->
313+
b.apply(NETSCORING.toPose()).lineToLinearHeading(INTAKE1.toPose()).build();
314+
public static final Function<Function<Pose2d, TrajectorySequenceBuilder>, TrajectorySequence>
315+
INTAKE1_TO_NETSCORING = b ->
316+
b.apply(INTAKE1.toPose()).lineToLinearHeading(NETSCORING.toPose()).build();
294317

295-
318+
//end of borrowing
296319

297320
//New testing constants for this year's game
298-
// public static ConfigurablePoseD START = new ConfigurablePoseD(35, 63, 0);
299-
// public static ConfigurablePoseD OBS_START = new ConfigurablePoseD(22, -65, 90);
300-
// public static ConfigurablePoseD NETSCORING_TEST = new ConfigurablePoseD(55, 55, 45);
301-
// public static ConfigurablePoseD NETSCORING_CLEAR = new ConfigurablePoseD(45, 35, -45);
302-
// public static ConfigurablePoseD SPLINETEST1 = new ConfigurablePoseD(0, -55, 0);
303-
// public static ConfigurablePoseD SPLINETEST2 = new ConfigurablePoseD(55, 0, 0);
304-
// public static ConfigurablePoseD OBS_PARK = new ConfigurablePoseD(62, -6, 90);
321+
public static ConfigurablePoseD START = new ConfigurablePoseD(35, 63, 0);
322+
//public static ConfigurablePoseD OBS_START = new ConfigurablePoseD(22, -65, 90);
323+
public static ConfigurablePoseD NETSCORING_TEST = new ConfigurablePoseD(55, 55, 45);
324+
public static ConfigurablePoseD NETSCORING_CLEAR = new ConfigurablePoseD(45, 35, -45);
325+
public static ConfigurablePoseD SPLINETEST1 = new ConfigurablePoseD(0, -55, 0);
326+
public static ConfigurablePoseD SPLINETEST2 = new ConfigurablePoseD(55, 0, 0);
327+
//public static ConfigurablePoseD OBS_PARK = new ConfigurablePoseD(62, -6, 90);
305328

306329
public static ConfigurablePoseD NETSCORING = new ConfigurablePoseD(55, 55, 45);
307330
public static ConfigurablePoseD NET_START = new ConfigurablePoseD(35, 63, 0);

0 commit comments

Comments
 (0)