/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.technobots.subsystems;

import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.technobots.RobotMap;
import edu.wpi.first.wpilibj.technobots.commands.DriveWithXbox;

/**
 *
 * @author miguel
 */
public class DriveTrain extends Subsystem {

    RobotDrive motors;

    public DriveTrain() {

        super("DriveTrain");

        motors = new RobotDrive(RobotMap.upperLeft, RobotMap.lowerLeft, RobotMap.upperRight, RobotMap.lowerRight);

        motors.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, true);
        motors.setInvertedMotor(RobotDrive.MotorType.kRearLeft, true);
    }

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

    public void MecanumDrive(double magnitude, double rotation, double direction) {

         motors.mecanumDrive_Polar(magnitude, direction, rotation);
    }
}

@@ -977,20 +977,21 @@
  double 
-rota
+direc
 tion, do
@@ -991,29 +991,28 @@
 ion, double 
-direc
+rota
 tion) %7B%0A%0A   

Fix Driving