/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.templates.subsystems;

import edu.wpi.first.wpilibj.Relay;
import edu.wpi.first.wpilibj.command.Subsystem;

/**
 *
 * @author AtidSpikes
 */
public class Arm extends Subsystem {

    private Relay spike;
    // Put methods for controlling this subsystem
    // here. Call these from Commands.

    public Arm(Relay spike, String name) {
        super(name);
        this.spike = spike;
    }

    public Arm(int spikePort, String name) {
        this(new Relay(spikePort), name);
    }

    public void moveUp() {
        //assuming forward moves up
        spike.set(Relay.Value.kForward);
    }

    public void moveDown() {
        spike.set(Relay.Value.kReverse);
    }

    public void stop() {
        spike.set(Relay.Value.kOff);
    }

    public void initDefaultCommand() {
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
    }
}

@@ -238,16 +238,60 @@
 ems;%0D%0A%0D%0A
+import edu.wpi.first.wpilibj.DigitalInput;%0D%0A
 import e
@@ -469,24 +469,60 @@
 lay spike;%0D%0A
+    private DigitalInput up, down;%0D%0A
     // Put m
@@ -629,16 +629,52 @@
 y spike,
+ DigitalInput up, DigitalInput down,
  String 
@@ -771,16 +771,42 @@
 ikePort,
+ int upPort, int downPort,
  String 
@@ -848,16 +848,70 @@
 kePort),
+ new DigitalInput(upPort), new DigitalInput(downPort),
  name);%0D
@@ -1182,32 +1182,164 @@
 Off);%0D%0A    %7D%0D%0A%0D%0A
+    public boolean isUp() %7B%0D%0A        return up.get();%0D%0A    %7D%0D%0A%0D%0A    public boolean isDown() %7B%0D%0A        return down.get();%0D%0A    %7D%0D%0A%0D%0A
     public void 

Add digital input in Arm