 double pi = 3.1415;
 double potentiometerRangeDeg = 300; 
 double potentiometerMaxRange = potentiometerRangeDeg * pi/180;
-double potentiometerUsedRange = pi/8;
+double potentiometerUsedRange = pi/3;
 double potentiometerDistance = 0.05; //Distance from rotation axis to lever arm
 //*********************************************************************************************
 

  }
  if (myPID2.GetMode() ==AUTOMATIC)
  {
    Setpoint2 = StrToFloat(setpos2.value());
    myPID2.Compute();
    alphaSigned2 = Output2;
  }


  process();
  
  power1 = -alphaSigned1*127;
  power2 = -alphaSigned2*127;
  ST.motor(1, power1);
  ST.motor(2, power2);
  delay(10);
