From the math menu grab the and blocks and add them to the respective motor in the block.
From there the robot will handle the rest as the program runs! Each time our loop cycles, the robot will check the position of our joysticks and quickly adjust the motor power based on its calculations.
Save your OpMode and give it a try!
Next add the and variables to the formula blocks.