Hello! I am here to talk about Drive for Distance. I have created a previous thread about the most accurate turning and going forward. I seem to need some help. How do you calculate these variables, they are copied and pasted and I am very confused. I code with VEXCODE text so please only use this to help me. Also if you already know I would love to get the info on all this with normal omi wheels and normal grip wheels. I am pretty sure the degreestoroatate is how far but what does this mean and is it in CM so it will go how far CM i say?
// wheelDiameter is the measurement of a wheel from edge to edge in centimeters. double wheelDiameterCM = 10.16; // travelTarget will define how far we want the robot to move in centimeters. double travelTargetCM = 20; // Calculate wheel circumference: circumference = (wheelDiameter)(PI) double circumference = wheelDiameterCM * 3.141592; // Now we know the robot will travel the Circumference per 360 degrees of rotation or (circumference / 360 degrees). // We also know that are target distance is defined as travelTargetCM, but we do not know the degrees to of rotation. (traveTargetCM / ?) // Using propotional reasoning we know (circumference / 360) = (travelTarget / degreesToRotate). // Solving for our unkown (degreesToRotate) we get: degreesToRotate = (360 / travelTargetCM) / circumference double degreesToRotate = (360 * travelTargetCM) / circumference;