This repository has been archived by the owner on Apr 27, 2018. 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.
changes made at competition on Sunday
- Loading branch information
Showing
18 changed files
with
85 additions
and
39 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file modified
BIN
+340 Bytes
(130%)
bin/org/usfirst/frc/team5338/robot/commands/Autonomous.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
bin/org/usfirst/frc/team5338/robot/subsystems/DriveTrain.class
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+340 Bytes
(130%)
build/org/usfirst/frc/team5338/robot/commands/Autonomous.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/org/usfirst/frc/team5338/robot/subsystems/DriveTrain.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package org.usfirst.frc.team5338.robot.commands; | ||
|
||
import org.usfirst.frc.team5338.robot.Robot; | ||
|
||
import edu.wpi.first.wpilibj.command.Command; | ||
|
||
public class MoveFast extends Command | ||
{ | ||
int seconds; | ||
public MoveFast(int input) | ||
{ | ||
seconds = input; | ||
requires(Robot.drivetrain); | ||
setTimeout(Math.abs(seconds)); | ||
} | ||
protected void execute() | ||
{ | ||
if(seconds > 0) | ||
{ | ||
Robot.drivetrain.drive(-0.75, -0.75); | ||
} | ||
else | ||
{ | ||
Robot.drivetrain.drive(0.75, 0.75); | ||
} | ||
} | ||
protected boolean isFinished() | ||
{ | ||
return isTimedOut(); | ||
} | ||
protected void end() | ||
{ | ||
Robot.drivetrain.drive(0.0, 0.0); | ||
} | ||
} |
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