-
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
Showing
33 changed files
with
211 additions
and
171 deletions.
There are no files selected for viewing
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
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
bin/org/usfirst/frc/team2403/robot/auto/actions/FollowTrajectory.class
Binary file not shown.
Binary file removed
BIN
-3.1 KB
bin/org/usfirst/frc/team2403/robot/auto/actions/GenerateTrajectory.class
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-2.05 KB
bin/org/usfirst/frc/team2403/robot/auto/modes/GenerateTrajectories.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+38 Bytes
(100%)
bin/org/usfirst/frc/team2403/robot/auto/modes/TrajectoryTest.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
build/org/usfirst/frc/team2403/robot/auto/actions/FollowTrajectory.class
Binary file not shown.
Binary file removed
BIN
-3.12 KB
build/org/usfirst/frc/team2403/robot/auto/actions/GenerateTrajectory.class
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-1.96 KB
build/org/usfirst/frc/team2403/robot/auto/modes/GenerateTrajectories.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-8 Bytes
(99%)
build/org/usfirst/frc/team2403/robot/auto/modes/TrajectoryTest.class
Binary file not shown.
Binary file not shown.
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
81 changes: 0 additions & 81 deletions
81
src/org/usfirst/frc/team2403/robot/auto/actions/GenerateTrajectory.java
This file was deleted.
Oops, something went wrong.
69 changes: 69 additions & 0 deletions
69
src/org/usfirst/frc/team2403/robot/auto/modes/CenterSwitch.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,69 @@ | ||
|
||
package org.usfirst.frc.team2403.robot.auto.modes; | ||
|
||
import org.usfirst.frc.team2403.robot.Constants; | ||
import org.usfirst.frc.team2403.robot.DriveTrain; | ||
import org.usfirst.frc.team2403.robot.Elevator; | ||
import org.usfirst.frc.team2403.robot.Intake; | ||
import org.usfirst.frc.team2403.robot.auto.actions.Clamp; | ||
import org.usfirst.frc.team2403.robot.auto.actions.FollowTrajectory; | ||
import org.usfirst.frc.team2403.robot.auto.actions.IntakeCube; | ||
import org.usfirst.frc.team2403.robot.auto.actions.PivotAngle; | ||
import org.usfirst.frc.team2403.robot.auto.actions.Wait; | ||
import org.usfirst.frc.team2403.robot.auto.util.AutoMode; | ||
import org.usfirst.frc.team2403.robot.auto.util.AutoModeEndedException; | ||
|
||
import edu.wpi.first.wpilibj.DriverStation; | ||
|
||
public class CenterSwitch extends AutoMode{ | ||
|
||
DriveTrain drive; | ||
Intake intake; | ||
Elevator elevator; | ||
|
||
String gameData; | ||
|
||
public CenterSwitch(DriveTrain drive, Intake intake, Elevator elevator) { | ||
this.drive = drive; | ||
this.intake = intake; | ||
this.elevator = elevator; | ||
gameData = DriverStation.getInstance().getGameSpecificMessage(); | ||
} | ||
|
||
|
||
@Override | ||
protected void routine() throws AutoModeEndedException { | ||
if(gameData.charAt(0) == 'R') { | ||
runAction(new Clamp(intake, true)); | ||
runAction(new FollowTrajectory("SwitchCenterRight1", drive)); | ||
runAction(new IntakeCube(.7, false, intake)); | ||
runActionsParallel(new PivotAngle(Constants.PIVOT_POSITION_BOTTOM, elevator), new FollowTrajectory("SwitchCenterRight2", drive)); | ||
runAction(new IntakeCube(.8, true, intake)); | ||
runAction(new Clamp(intake, false)); | ||
runAction(new FollowTrajectory("SwitchCenterRight3", drive)); | ||
runAction(new Clamp(intake, true)); | ||
runAction(new IntakeCube(0, true, intake)); | ||
runActionsParallel(new PivotAngle(Constants.PIVOT_POSITION_SWITCH, elevator), new FollowTrajectory("SwitchCenterRight4", drive)); | ||
runAction(new FollowTrajectory("SwitchCenterRight5", drive)); | ||
runAction(new IntakeCube(.6, false, intake)); | ||
runAction(new Wait(1)); | ||
runAction(new IntakeCube(0, true, intake)); | ||
} | ||
else { | ||
runAction(new Clamp(intake, true)); | ||
runAction(new FollowTrajectory("CenterSwitchLeft1", drive)); | ||
runAction(new IntakeCube(.7, false, intake)); | ||
runActionsParallel(new PivotAngle(Constants.PIVOT_POSITION_BOTTOM, elevator), new FollowTrajectory("CenterSwitchLeft2", drive)); | ||
runAction(new IntakeCube(.8, true, intake)); | ||
runAction(new Clamp(intake, false)); | ||
runAction(new FollowTrajectory("CenterSwitchLeft3", drive)); | ||
runAction(new Clamp(intake, true)); | ||
runAction(new IntakeCube(0, true, intake)); | ||
runActionsParallel(new PivotAngle(Constants.PIVOT_POSITION_SWITCH, elevator), new FollowTrajectory("CenterSwitchLeft4", drive)); | ||
runAction(new FollowTrajectory("CenterSwitchLeft5", drive)); | ||
runAction(new IntakeCube(.6, false, intake)); | ||
runAction(new Wait(1)); | ||
runAction(new IntakeCube(0, true, intake)); | ||
} | ||
} | ||
} |
75 changes: 0 additions & 75 deletions
75
src/org/usfirst/frc/team2403/robot/auto/modes/GenerateTrajectories.java
This file was deleted.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
src/org/usfirst/frc/team2403/robot/auto/modes/LeftScale.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,39 @@ | ||
|
||
package org.usfirst.frc.team2403.robot.auto.modes; | ||
|
||
import org.usfirst.frc.team2403.robot.DriveTrain; | ||
import org.usfirst.frc.team2403.robot.Intake; | ||
import org.usfirst.frc.team2403.robot.auto.actions.DriveStraight; | ||
import org.usfirst.frc.team2403.robot.auto.actions.FollowTrajectory; | ||
import org.usfirst.frc.team2403.robot.auto.actions.IntakeCube; | ||
import org.usfirst.frc.team2403.robot.auto.actions.TurnAngle; | ||
import org.usfirst.frc.team2403.robot.auto.util.AutoMode; | ||
import org.usfirst.frc.team2403.robot.auto.util.AutoModeEndedException; | ||
|
||
import edu.wpi.first.wpilibj.DriverStation; | ||
|
||
public class LeftScale extends AutoMode{ | ||
|
||
DriveTrain drive; | ||
Intake intake; | ||
|
||
String gameData; | ||
|
||
public LeftScale(DriveTrain drive, Intake intake) { | ||
this.drive = drive; | ||
this.intake = intake; | ||
gameData = DriverStation.getInstance().getGameSpecificMessage(); | ||
} | ||
|
||
|
||
@Override | ||
protected void routine() throws AutoModeEndedException { | ||
if(gameData.charAt(0) == 'L') { | ||
runAction(new FollowTrajectory("LeftScaleLeft1", drive)); | ||
} | ||
|
||
else { | ||
|
||
} | ||
} | ||
} |
Oops, something went wrong.