I’ve been trying the use the rotate to function to rotate a motor to a certain degree, but it doesn’t work, does any1 know why this is?
if(controller1.ButtonY.pressing()){
arm1.rotateTo(100, rotationUnits::deg, false);
arm2.rotateTo(100, rotationUnits::deg, false);
}
if(controller1.ButtonX.pressing()){
arm1.rotateTo(150, rotationUnits::deg, false);
arm2.rotateTo(150, rotationUnits::deg, false);
}
if(controller1.ButtonA.pressing()){
arm1.rotateTo(0, rotationUnits::deg, false);
arm2.rotateTo(0, rotationUnits::deg, false);}