This repository has been archived by the owner on Jan 28, 2019. It is now read-only.
-
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
8736c81
commit a17e764
Showing
5 changed files
with
103 additions
and
6 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
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
46 changes: 46 additions & 0 deletions
46
FRC_Robot2.0/src/org/usfirst/frc/team2557/robot/autonomous/Auto_Shooter2.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,46 @@ | ||
package org.usfirst.frc.team2557.robot.autonomous; | ||
|
||
import org.usfirst.frc.team2557.robot.RobotMap; | ||
|
||
import edu.wpi.first.wpilibj.command.Command; | ||
import edu.wpi.first.wpilibj.command.TimedCommand; | ||
|
||
/** | ||
* | ||
*/ | ||
public class Auto_Shooter2 extends TimedCommand { | ||
|
||
public Auto_Shooter2(double timeout) { | ||
super(timeout); | ||
// Use requires() here to declare subsystem dependencies | ||
// eg. requires(chassis); | ||
} | ||
|
||
// Called just before this Command runs the first time | ||
protected void initialize() { | ||
} | ||
|
||
// Called repeatedly when this Command is scheduled to run | ||
protected void execute() { | ||
RobotMap.Lshooter.set(-.675); | ||
RobotMap.Rshooter.set(.675); | ||
RobotMap.copterAgitator.set(1); | ||
RobotMap.agitator.set(-.65); | ||
RobotMap.intake.set(.65); | ||
} | ||
|
||
// Called once after isFinished returns true | ||
protected void end() { | ||
RobotMap.Lshooter.set(0); | ||
RobotMap.Rshooter.set(0); | ||
RobotMap.copterAgitator.set(0); | ||
RobotMap.agitator.set(0); | ||
RobotMap.intake.set(0); | ||
|
||
} | ||
|
||
// Called when another command which requires one or more of the same | ||
// subsystems is scheduled to run | ||
protected void interrupted() { | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
FRC_Robot2.0/src/org/usfirst/frc/team2557/robot/autonomous/Autonomus_Shooter.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,42 @@ | ||
package org.usfirst.frc.team2557.robot.autonomous; | ||
|
||
import org.usfirst.frc.team2557.robot.RobotMap; | ||
|
||
import edu.wpi.first.wpilibj.command.Command; | ||
import edu.wpi.first.wpilibj.command.TimedCommand; | ||
|
||
/** | ||
* | ||
*/ | ||
public class Autonomus_Shooter extends TimedCommand { | ||
|
||
|
||
|
||
public Autonomus_Shooter(double timeout) { | ||
super(timeout); | ||
// Use requires() here to declare subsystem dependencies | ||
// eg. requires(chassis); | ||
|
||
|
||
} | ||
|
||
// Called just before this Command runs the first time | ||
protected void initialize() { | ||
|
||
} | ||
|
||
// Called repeatedly when this Command is scheduled to run | ||
protected void execute() { | ||
RobotMap.Lshooter.set(-.675); | ||
RobotMap.Rshooter.set(.675); | ||
} | ||
|
||
// Called once after isFinished returns true | ||
protected void end() { | ||
} | ||
|
||
// Called when another command which requires one or more of the same | ||
// subsystems is scheduled to run | ||
protected void interrupted() { | ||
} | ||
} |
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