TeamCode/src/main/java/org/firstinspires/ftc/teamcode/opmodes/old2017/SquirrelyDrive1.java
@Override
	public void init() {

		/*
		 * Use the hardwareMap to get the dc motors and servos by name. Note
		 * that the names of the devices must match the names used when you
		 * configured your robot and created the configuration file.
		 */
		
		/*
		 * For this test, we assume the following,
		 *   There are four motors
		 *   "fl" and "bl" are front and back left wheels
		 *   "fr" and "br" are front and back right wheels
		 */
		try {
			motorFrontRight = hardwareMap.dcMotor.get("front_right");
			motorFrontLeft = hardwareMap.dcMotor.get("front_left");
			motorBackRight = hardwareMap.dcMotor.get("back_right");
			motorBackLeft = hardwareMap.dcMotor.get("back_left");
			motorFrontRight.setDirection(DcMotor.Direction.REVERSE);
			motorBackRight.setDirection(DcMotor.Direction.REVERSE);
		}
		catch (IllegalArgumentException iax) {
			bDebug = true;
		}
	}
/*
	 * Code to run when the op mode is first enabled goes here
	 * 
	 * @see com.qualcomm.robotcore.eventloop.opmode.OpMode#start()
	 */
Code to run when the op mode is first enabled goes here


Code to run when the op mode is first enabled goes here
@Override
	public void init() {
		/*
		 * Use the hardwareMap to get the dc motors and servos by name. Note
		 * that the names of the devices must match the names used when you
		 * configured your robot and created the configuration file.
		 */
		/*
		 * For this test, we assume the following,
		 *   There are four motors
		 *   "fl" and "bl" are front and back left wheels
		 *   "fr" and "br" are front and back right wheels
		 */
		try {
			motorFrontRight = hardwareMap.dcMotor.get("front_right");
			motorFrontLeft = hardwareMap.dcMotor.get("front_left");
			motorBackRight = hardwareMap.dcMotor.get("back_right");
			motorBackLeft = hardwareMap.dcMotor.get("back_left");
			motorFrontRight.setDirection(DcMotor.Direction.REVERSE);
			motorBackRight.setDirection(DcMotor.Direction.REVERSE);
		}
		catch (IllegalArgumentException iax) {
			bDebug = true;
		}
	}
@ Override public void init ( ) { /*
		 * Use the hardwareMap to get the dc motors and servos by name. Note
		 * that the names of the devices must match the names used when you
		 * configured your robot and created the configuration file.
		 */ /*
		 * For this test, we assume the following,
		 *   There are four motors
		 *   "fl" and "bl" are front and back left wheels
		 *   "fr" and "br" are front and back right wheels
		 */ try { motorFrontRight = hardwareMap . dcMotor . get ( "front_right" ) ; motorFrontLeft = hardwareMap . dcMotor . get ( "front_left" ) ; motorBackRight = hardwareMap . dcMotor . get ( "back_right" ) ; motorBackLeft = hardwareMap . dcMotor . get ( "back_left" ) ; motorFrontRight . setDirection ( DcMotor . Direction . REVERSE ) ; motorBackRight . setDirection ( DcMotor . Direction . REVERSE ) ; } catch ( IllegalArgumentException iax ) { bDebug = true ; } }
Code to run when the op mode is first enabled goes here
Code to run when the op mode is first enabled goes here