1 package org
.usfirst
.frc
.team3501
.robot
.subsystems
;
3 import org
.usfirst
.frc
.team3501
.robot
.Constants
;
5 import edu
.wpi
.first
.wpilibj
.CANTalon
;
6 import edu
.wpi
.first
.wpilibj
.command
.Subsystem
;
8 public class IntakeArm
extends Subsystem
{
9 private CANTalon intake
;
10 private CANTalon chevalDeFriseHand
;
13 intake
= new CANTalon(Constants
.IntakeArm
.PORT
);
14 chevalDeFriseHand
= new CANTalon(Constants
.IntakeArm
.CHEVAL_DE_FRISE_HAND_PORT
);
18 * Intake only moves once at the beginning of the match. It lowers at the
19 * beginning of the match and is held there by mechanical stops until the end
22 * Must be used in a command that has a timer variable to stop it.
24 public void dropIntake() {
28 public void intake() {
29 intake
.set(Constants
.IntakeArm
.INTAKE_SPEED
);
32 public void output() {
33 intake
.set(Constants
.IntakeArm
.OUTPUT_SPEED
);
37 * This method allows you to set the speed of the motor. The range of speed
38 * is from [-1, 1]. A negative speed changes the direction of the motors,
39 * making it run backwards.
42 * The speed of the motors that control the rollers. The range of
43 * these motors go from [-1,1]. A negative speed changes the
44 * direction of the motors, making it run backwards.
46 * public IntakeArm() {
51 * This method allows you to set the speed of the motor(s). The range
53 * is from [-1, 1]. A negative speed changes the direction of the
57 * The speed of the motors that control the rollers. The range of
58 * these motors go from [-1,1]. A negative speed changes the
59 * direction of the motors.
60 * >>>>>>> reset to unix format
63 public void setRollerSpeed(double speed
) {
68 * <<<<<<< bd5dc4363add71a17f95409115dec96b83146549
69 * This method gets you the current speed of the motor that controls the
70 * motor. The range of speed is from [-1,1]. A negative speed changes the
71 * direction of the motor, making it run backwards.
73 * @return Returns the speed of the motor that controls the roller. The range
74 * of the motor goes from [-1,1]. A negative speed changes the
75 * direction of the motor, making it go backwards.
79 * >>>>>>> reset to unix format
82 public double getRollerSpeed() {
87 * <<<<<<< bd5dc4363add71a17f95409115dec96b83146549
88 * This method checks to see if the motors controlling the rollers are
91 * @return Returns whether the motors are currently running, and returns the
92 * state of the condition (true or false).
98 public boolean isBallInside() {
105 * >>>>>>> reset to unix format
108 public boolean areRollersRolling() {
113 protected void initDefaultCommand() {