src/org/usfirst/frc4678/CyberCavs2017Code/commands/RobotDrive.java
protected void execute() {
    	joyStickX = Robot.oi.driverGamepad.getX();
    	joyStickY = Robot.oi.driverGamepad.getY();
    	leftPower = joyStickY + joyStickX;
		rightPower = joyStickY - joyStickX;
		Robot.driveTrain.setLeftMotor(leftPower);
		Robot.driveTrain.setRightMotor(rightPower);
		SmartDashboard.putNumber("Left Wheels Position", Robot.driveTrain.getLeftEncoder());
		SmartDashboard.putNumber("Right Wheels Position", Robot.driveTrain.getRightEncoder());
    }
// Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run
protected void execute() {
    	joyStickX = Robot.oi.driverGamepad.getX();
    	joyStickY = Robot.oi.driverGamepad.getY();
    	leftPower = joyStickY + joyStickX;
		rightPower = joyStickY - joyStickX;
		Robot.driveTrain.setLeftMotor(leftPower);
		Robot.driveTrain.setRightMotor(rightPower);
		SmartDashboard.putNumber("Left Wheels Position", Robot.driveTrain.getLeftEncoder());
		SmartDashboard.putNumber("Right Wheels Position", Robot.driveTrain.getRightEncoder());
    }
protected void execute ( ) { joyStickX = Robot . oi . driverGamepad . getX ( ) ; joyStickY = Robot . oi . driverGamepad . getY ( ) ; leftPower = joyStickY + joyStickX ; rightPower = joyStickY - joyStickX ; Robot . driveTrain . setLeftMotor ( leftPower ) ; Robot . driveTrain . setRightMotor ( rightPower ) ; SmartDashboard . putNumber ( "Left Wheels Position" , Robot . driveTrain . getLeftEncoder ( ) ) ; SmartDashboard . putNumber ( "Right Wheels Position" , Robot . driveTrain . getRightEncoder ( ) ) ; }
Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run