-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a2f1e0
commit 234b2b3
Showing
15 changed files
with
106 additions
and
138 deletions.
There are no files selected for viewing
4 changes: 0 additions & 4 deletions
4
.../java/org/firstinspires/ftc/teamcode/ftc16072/BehaviorTrees/Actions/ReleaseAutoPixel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...2/BehaviorTrees/Actions/Trajectories/LeftSpikeTrajectory/SetLeftSpikeTrajectoryPart2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package org.firstinspires.ftc.teamcode.ftc16072.BehaviorTrees.Actions.Trajectories.LeftSpikeTrajectory; | ||
|
||
import org.firstinspires.ftc.teamcode.ftc16072.BehaviorTrees.Node; | ||
import org.firstinspires.ftc.teamcode.ftc16072.OpModes.QQOpMode; | ||
import org.firstinspires.ftc.teamcode.ftc16072.Util.SpikePosition; | ||
import org.firstinspires.ftc.teamcode.rr_trajectorysequence.TrajectorySequence; | ||
import org.firstinspires.ftc.teamcode.rr_trajectorysequence.TrajectorySequenceBuilder; | ||
|
||
public class SetLeftSpikeTrajectoryPart2 extends Node { | ||
|
||
public static final int LEFT_DISTANCE_INCHES = 8; | ||
|
||
@Override | ||
public State tick(QQOpMode opMode) { | ||
TrajectorySequenceBuilder builder = opMode.robot.nav.trajectorySequenceBuilder(opMode.robot.nav.getPoseEstimate()); | ||
TrajectorySequence sequence = builder | ||
//right because robot is facing backward | ||
.strafeRight(LEFT_DISTANCE_INCHES) | ||
.build(); | ||
if (sequence == null){ | ||
return State.FAILURE; | ||
} | ||
opMode.board.add("TrajectorySequence", sequence); | ||
opMode.board.add("TrajectorySequenceString", "Left Spike Trajectory 2"); | ||
|
||
opMode.board.add("SpikePosition", SpikePosition.LEFT); | ||
return State.SUCCESS; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...BehaviorTrees/Actions/Trajectories/RightSpikeTrajectory/SetRightSpikeTrajectoryPart2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package org.firstinspires.ftc.teamcode.ftc16072.BehaviorTrees.Actions.Trajectories.RightSpikeTrajectory; | ||
|
||
import org.firstinspires.ftc.teamcode.ftc16072.BehaviorTrees.Node; | ||
import org.firstinspires.ftc.teamcode.ftc16072.OpModes.QQOpMode; | ||
import org.firstinspires.ftc.teamcode.ftc16072.Util.SpikePosition; | ||
import org.firstinspires.ftc.teamcode.rr_trajectorysequence.TrajectorySequence; | ||
import org.firstinspires.ftc.teamcode.rr_trajectorysequence.TrajectorySequenceBuilder; | ||
|
||
public class SetRightSpikeTrajectoryPart2 extends Node { | ||
|
||
public static final int RIGHT_DISTANCE_INCHES = 20; | ||
|
||
@Override | ||
public State tick(QQOpMode opMode) { | ||
TrajectorySequenceBuilder builder = opMode.robot.nav.trajectorySequenceBuilder(opMode.robot.nav.getPoseEstimate()); | ||
TrajectorySequence sequence = builder.strafeLeft(RIGHT_DISTANCE_INCHES) | ||
.build(); | ||
if (sequence == null){ | ||
return State.FAILURE; | ||
} | ||
opMode.board.add("TrajectorySequence", sequence); | ||
opMode.board.add("SpikePosition", SpikePosition.RIGHT); | ||
return State.SUCCESS; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 0 additions & 90 deletions
90
...Code/src/main/java/org/firstinspires/ftc/teamcode/ftc16072/OpModes/PlacingOnTapeAuto.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 2 additions & 11 deletions
13
...ftc16072/OpModes/BlueClose_SpikeAuto.java → ...pikeTrajectories/BlueClose_SpikeAuto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,20 @@ | ||
package org.firstinspires.ftc.teamcode.ftc16072.OpModes; | ||
package org.firstinspires.ftc.teamcode.ftc16072.OpModes.SpikeTrajectories; | ||
|
||
import com.qualcomm.robotcore.eventloop.opmode.Autonomous; | ||
|
||
import org.firstinspires.ftc.teamcode.ftc16072.BehaviorTrees.Node; | ||
import org.firstinspires.ftc.teamcode.ftc16072.BehaviorTrees.Trees.SpikeAutoTree; | ||
import org.firstinspires.ftc.teamcode.ftc16072.BehaviorTrees.Trees.TeleopTree; | ||
import org.firstinspires.ftc.teamcode.ftc16072.OpModes.SpikeAutoBase; | ||
import org.firstinspires.ftc.teamcode.ftc16072.Util.Alliance; | ||
import org.firstinspires.ftc.teamcode.ftc16072.Util.StartPosition; | ||
@Autonomous | ||
public class BlueClose_SpikeAuto extends SpikeAutoBase { | ||
|
||
|
||
|
||
@Override | ||
public void init(){ | ||
super.init(); | ||
board.add("Alliance", Alliance.BLUE); | ||
board.add("StartPosition", StartPosition.CLOSE); | ||
|
||
|
||
} | ||
|
||
@Override | ||
public void init_loop() { | ||
super.init_loop(); | ||
telemetry.addData("Prop Location: ", robot.cameraBack.getTeamPropPosition()); | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
...e/ftc16072/OpModes/BlueFar_SpikeAuto.java → .../SpikeTrajectories/BlueFar_SpikeAuto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.