SHARE
TWEET
Untitled
a guest
Jun 23rd, 2014
231
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- public class DriveTele extends CommandBase {
- public DriveTele() {
- // Use requires() here to declare subsystem dependencies
- // eg. requires(chassis);
- requires(chassis); //assuming you have a Chassis object in your CommandBase.java. If not, then requires(new 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() {
- chassis.driveTele(oi.xcon2.getLeftJoyY(), oi.xcon2.getRightJoyY());
- }
- // Make this return true when this Command no longer needs to run execute()
- protected boolean isFinished() {
- return false;
- }
- // 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() {
- }
- }
RAW Paste Data
