mirror of
https://github.com/Team4388/2018-Robot.git
synced 2026-06-09 00:38:04 -06:00
40 lines
597 B
Java
40 lines
597 B
Java
|
|
package org.usfirst.frc4388.robot.commands;
|
||
|
|
|
||
|
|
import org.usfirst.frc4388.robot.Robot;
|
||
|
|
|
||
|
|
import edu.wpi.first.wpilibj.command.Command;
|
||
|
|
|
||
|
|
public class IntakePosition extends Command
|
||
|
|
{
|
||
|
|
public boolean position;
|
||
|
|
|
||
|
|
public IntakePosition(boolean position) {
|
||
|
|
this.position=position;
|
||
|
|
requires(Robot.pnumatics);
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
protected void initialize() {
|
||
|
|
Robot.pnumatics.setIntake(position);
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
protected void execute() {
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
protected boolean isFinished() {
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
protected void end() {
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
protected void interrupted() {
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|