package com.edinarobotics.zephyr;

import edu.wpi.first.wpilibj.Jaguar;
import edu.wpi.first.wpilibj.RobotDrive;

/**
 *
 */
public class Components {
    //PORT NUMBERS HERE!
    private static final int LEFT_JAGUAR_PORT = 1;
    private static final int RIGHT_JAGUAR_PORT = 2;
    private static final int SHOOTER_JAGUAR_PORT = 3;
    
    private static Components instance;
    public Jaguar leftJaguar;
    public Jaguar rightJaguar;
    public Jaguar shooterJaguar;
    public RobotDrive driveControl;
    
    private Components(){
        leftJaguar = new Jaguar(LEFT_JAGUAR_PORT);
        rightJaguar = new Jaguar(RIGHT_JAGUAR_PORT);
        shooterJaguar = new Jaguar(SHOOTER_JAGUAR_PORT);
        driveControl = new RobotDrive(leftJaguar,rightJaguar);
    }
    
    public static Components getInstance(){
        if(instance == null){
            instance = new Components();
        }
        return instance;
    }
}

@@ -57,22 +57,99 @@
 wpilibj.
-Jaguar
+Compressor;%0Aimport edu.wpi.first.wpilibj.Jaguar;%0Aimport edu.wpi.first.wpilibj.Relay
 ;%0Aimport
@@ -403,16 +403,185 @@
 RT = 3;%0A
+    private static final int COMPRESSOR_PRESSURE_SENSOR = 1;%0A    private static final int COMPRESSOR_SPIKE = 1;%0A    private static final int BALL_LOAD_PISTON_SPIKE = 2;%0A
     %0A   
@@ -747,16 +747,83 @@
 ontrol;%0A
+    public Compressor compressor;%0A    public Relay ballLoadPiston;%0A
     %0A   
@@ -998,32 +998,32 @@
 R_JAGUAR_PORT);%0A
-
         driveCon
@@ -1069,16 +1069,159 @@
 aguar);%0A
+        compressor  = new Compressor(COMPRESSOR_PRESSURE_SENSOR,COMPRESSOR_SPIKE);%0A        ballLoadPiston = new Relay(BALL_LOAD_PISTON_SPIKE);%0A
     %7D%0A  

Add shooter pneumatics components to Components.