cb0cc38a3d5732e09b475c9018641ba7ce548d9f
1 package org
.usfirst
.frc3501
.RiceCatRobot
.subsystems
;
3 import org
.usfirst
.frc3501
.RiceCatRobot
.RobotMap
;
5 import edu
.wpi
.first
.wpilibj
.CANJaguar
;
6 import edu
.wpi
.first
.wpilibj
.DigitalInput
;
7 import edu
.wpi
.first
.wpilibj
.command
.Subsystem
;
9 public class Arm
extends Subsystem
{
10 private CANJaguar left
, right
;
11 private DigitalInput limit1
, limit2
, limit3
, limit4
;
14 left
= new CANJaguar(RobotMap
.ARM_LEFT
);
15 right
= new CANJaguar(RobotMap
.ARM_RIGHT
);
16 limit1
= new DigitalInput(RobotMap
.ARM_LIMIT_1
);
17 limit2
= new DigitalInput(RobotMap
.ARM_LIMIT_2
);
18 limit3
= new DigitalInput(RobotMap
.ARM_LIMIT_3
);
19 limit4
= new DigitalInput(RobotMap
.ARM_LIMIT_4
);
22 public void initDefaultCommand() {
25 public void fineTuneControl(double d
) {
26 if (Math
.abs(d
) < 0.05) {
36 public void setLeft(double speed
) {
40 public void setRight(double speed
) {
44 public void setArmSpeeds(double speed
) {