-
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.
Replace all placeholders in auton code with real code
- Loading branch information
Showing
21 changed files
with
102 additions
and
56 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 not shown.
Binary file not shown.
Binary file modified
BIN
+747 Bytes
(270%)
build/org/usfirst/frc/team334/robot/subsystems/RollerIntake.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
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
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
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
8 changes: 5 additions & 3 deletions
8
src/org/usfirst/frc/team334/robot/auto/scenarios/RightStartRightSwitch.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,17 +1,19 @@ | ||
package org.usfirst.frc.team334.robot.auto.scenarios; | ||
|
||
import org.usfirst.frc.team334.robot.Constants; | ||
import org.usfirst.frc.team334.robot.commands.auton.DriveForwardCommand; | ||
import org.usfirst.frc.team334.robot.commands.auton.TurnCommand; | ||
import org.usfirst.frc.team334.robot.commands.auton.*; | ||
import org.usfirst.frc.team334.robot.commands.elevator.*; | ||
import org.usfirst.frc.team334.robot.commands.intake.*; | ||
|
||
import edu.wpi.first.wpilibj.command.CommandGroup; | ||
|
||
public class RightStartRightSwitch extends CommandGroup { | ||
|
||
public RightStartRightSwitch() { | ||
addParallel(new SetElevatorToSwitchCommand()); | ||
addSequential(new DriveForwardCommand(Constants.DISTANCE_TO_SWITCH_PARALLEL)); | ||
addSequential(new TurnCommand(-90)); // Turn to switch | ||
// Drop cube command | ||
addSequential(new ReleasePowerCubeCommand()); | ||
} | ||
|
||
} |
24 changes: 13 additions & 11 deletions
24
src/org/usfirst/frc/team334/robot/auto/scenarios/RightStartRightSwitchLeftScale.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,30 +1,32 @@ | ||
package org.usfirst.frc.team334.robot.auto.scenarios; | ||
|
||
import org.usfirst.frc.team334.robot.Constants; | ||
import org.usfirst.frc.team334.robot.commands.auton.DriveForwardCommand; | ||
import org.usfirst.frc.team334.robot.commands.auton.TurnCommand; | ||
import org.usfirst.frc.team334.robot.commands.auton.WaitCommand; | ||
import org.usfirst.frc.team334.robot.commands.auton.*; | ||
import org.usfirst.frc.team334.robot.commands.elevator.*; | ||
import org.usfirst.frc.team334.robot.commands.intake.*; | ||
|
||
import edu.wpi.first.wpilibj.command.CommandGroup; | ||
|
||
public class RightStartRightSwitchLeftScale extends CommandGroup { | ||
|
||
public RightStartRightSwitchLeftScale() { | ||
addParallel(new SetElevatorToSwitchCommand()); | ||
addSequential(new DriveForwardCommand(Constants.DISTANCE_TO_SWITCH_PARALLEL)); | ||
addSequential(new TurnCommand(-90)); // Turn left 90 to face scale | ||
addSequential(new WaitCommand(0.5)); // Placeholder for drop cube command | ||
addSequential(new TurnCommand(90)); // Turn away from scale | ||
addSequential( | ||
new DriveForwardCommand(Constants.DISTANCE_TO_SWITCH_REAR - Constants.DISTANCE_TO_SWITCH_PARALLEL)); | ||
addSequential(new TurnCommand(-90)); // Turn left 90 to face switch | ||
addSequential(new ReleasePowerCubeCommand()); | ||
addSequential(new TurnCommand(90)); // Turn away from switch | ||
addSequential(new DriveForwardCommand(Constants.DISTANCE_TO_SWITCH_REAR - Constants.DISTANCE_TO_SWITCH_PARALLEL)); | ||
addParallel(new SetElevatorToExchangeCommand()); | ||
addSequential(new TurnCommand(-90)); // Turn to box behind switch | ||
addSequential(new DriveForwardCommand(10)); // Go up to box | ||
addSequential(new WaitCommand(0.5)); // Placeholder for intake command | ||
addSequential(new GrabPowerCubeCommand()); | ||
addSequential(new TurnCommand(90)); // Turn to alleyway | ||
addSequential(new DriveForwardCommand(15)); // Move to middle of alleyway | ||
addSequential(new TurnCommand(-90)); // Turn to far side of alleyway | ||
addSequential(new DriveForwardCommand(Constants.ALLEYWAY_DISTANCE_FROM_ALLIANCE_WALL)); | ||
addParallel(new SetElevatorToScaleCommand()); | ||
addSequential(new DriveForwardCommand(Constants.ALLEYWAY_TOTAL_LENGTH)); | ||
addSequential(new TurnCommand(90)); // Turn to scale | ||
// Drop cube command | ||
addSequential(new ReleasePowerCubeCommand()); | ||
} | ||
|
||
} |
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