package org.usfirst.frc.team1719.robot;

import edu.wpi.first.wpilibj.AnalogGyro;
import edu.wpi.first.wpilibj.AnalogPotentiometer;
import edu.wpi.first.wpilibj.Compressor;
import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.Solenoid;
import edu.wpi.first.wpilibj.SpeedController;
import edu.wpi.first.wpilibj.Talon;

/**
 * The RobotMap is a mapping from the ports sensors and actuators are wired into
 * to a variable name. This provides flexibility changing wiring, makes checking
 * the wiring easier and significantly reduces the number of magic numbers
 * floating around.
 */
public class RobotMap {
    // For example to map the left and right motors, you could define the
    // following variables to use with your drivetrain subsystem.
    // public static int leftMotor = 1;
    // public static int rightMotor = 2;
    
    // If you are using multiple modules, make sure to define both the port
    // number and the module. For example you with a rangefinder:
    // public static int rangefinderPort = 1;
    // public static int rangefinderModule = 1;
	
	static SpeedController leftController;
	static SpeedController rightController;
	static Compressor mainCompressor;
	static Solenoid shifterSolenoid;
	
	public static Talon armMotor;
	
	public static DigitalInput armLowerLimitSwitch;
	public static DigitalInput armUpperLimitSwitch;
	
	public static AnalogGyro gyro;
	
	public static AnalogPotentiometer armPot;
	
	public static void init(){
		leftController = new Talon(0);
		rightController = new Talon(1);
		mainCompressor = new Compressor();
		shifterSolenoid = new Solenoid(0);
		
		//gyro = new AnalogGyro(4);
		armLowerLimitSwitch = new DigitalInput(2);
		armUpperLimitSwitch = new DigitalInput(1);
		armMotor = new Talon(2);
		armPot = new AnalogPotentiometer(0, 100);
	}
	
}

@@ -1810,10 +1810,14 @@
 0, 1
+2
 00
+.0D
 );%0A%09

Fix pot scaling for arm (now in degrees)