/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved.                             */
/* Open Source Software - may be modified and shared by FRC teams. The code   */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project.                                                               */
/*----------------------------------------------------------------------------*/

package com.edinarobotics.zephyr;


import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.SimpleRobot;

/**
 * The VM is configured to automatically run this class, and to call the
 * functions corresponding to each mode, as described in the SimpleRobot
 * documentation. If you change the name of this class or the package after
 * creating this project, you must also update the manifest file in the resource
 * directory.
 */
public class Zephyr extends SimpleRobot {
    /**
     * This function is called once each time the robot enters autonomous mode.
     */
    public void autonomous() {
        
    }

    /**
     * This function is called once each time the robot enters operator control.
     */
    public void operatorControl() {
        Joystick joystick = new Joystick(1);
        Components components = Components.getInstance();
        while(this.isOperatorControl()&&this.isEnabled()){
           components.leftJaguar.set(joystick.getRawAxis(2));
           components.rightJaguar.set(joystick.getRawAxis(5));
        }
        components.leftJaguar.set(0);
        components.rightJaguar.set(0);
    }
}

@@ -516,16 +516,64 @@
 phyr;%0A%0A%0A
+import com.edinarobotics.utils.gamepad.Gamepad;%0A
 import e
@@ -1301,40 +1301,38 @@
     
-Joystick joystick = new Joystick
+Gamepad gamepad1 = new Gamepad
 (1);
@@ -1490,29 +1490,26 @@
 set(
-joystick.getRawAxis(2
+gamepad1.getLeftY(
 ));%0A
@@ -1550,29 +1550,27 @@
 set(
-joystick.getRawAxis(5
+gamepad1.getRightY(
 ));%0A

Change teleop to drive with the new Gamepad class.