/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ca.teamdave;


import edu.wpi.first.wpilibj.GenericHID;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.Victor;

/**
 *
 * @author leigh-pauls
 */
public class RobotInterface {
    public Victor drive_left;
    public Victor drive_right;
    public Joystick driver;
   
    public RobotInterface() {
        
        drive_left = new Victor(1);
        drive_right = new Victor(3);
        driver = new Joystick(1);
    }
    
    public void setDrive(double x, double y) {

        double left = y + x;
        double right = -y + x;
        
        drive_left.set(left);
        drive_right.set(right);
    }  
    
    public double getDriverX() {
        double driverX = driver.getX(GenericHID.Hand.kLeft);
        return driverX;
    }

    public double getDriverY() {
        double driverY = -driver.getY(GenericHID.Hand.kRight);
        return driverY;
    }
    
}

@@ -361,29 +361,30 @@
 ace %7B%0D%0A    p
-ublic
+rivate
  Victor driv
@@ -397,21 +397,22 @@
 ;%0D%0A    p
-ublic
+rivate
  Victor 
@@ -430,21 +430,22 @@
 ;%0D%0A    p
-ublic
+rivate
  Joystic
@@ -672,18 +672,16 @@
 e y) %7B%0D%0A
-%0D%0A
         
@@ -869,24 +869,14 @@
     
-double driverX =
+return
  dri
@@ -913,33 +913,8 @@
 );%0D%0A
-        return driverX;%0D%0A
     
@@ -964,24 +964,14 @@
     
-double driverY =
+return
  -dr
@@ -1001,39 +1001,13 @@
 nd.k
-Right);%0D%0A        return driverY
+Left)
 ;%0D%0A 

Clean up robot interface