 float valueL = 0;           // calculated value L float
 float Cmult;                // constant multiplier to calculate C value
 float Lmult;                // constant multiplier to calculate L value
-float totalStepsC;          // amount of steps in single 260 degree rotation
-float pFmin;                // value of minimum pF in given variable capacitor
-float pFmax;                // value of maximum pF in given variable capacitor
-float pFtotalValue;         // = maximum pF - minimum pF
-float pFperStep;            // value of pF in one motor step
-float valueRotateC;         // steps neede to rotate to calculated C value
 
 boolean presentValue = false;
 

  pi = 3.14159;
  Lmult = 1000000000000;
  valueL = ((1 / (2 * pi * tuningFreqCalc * valueC)) / (2 * pi * tuningFreqCalc)) * Lmult;
  Serial.println(valueL);
}

void calculateStepsC() {                        // calculate needed steps for C
  // Process for linear capacitor with 22-360 pH - need to ajust or change for different capacitor

  totalStepsC = 2964;
  pFmin = 22;
  pFmax = 360;
  pFtotalValue = pFmax - pFmin;
//  Serial.println(pFtotalValue);
  pFperStep = pFtotalValue / ( totalStepsC / 2 );
//  Serial.println(pFperStep);
  valueRotateC = ( valueC - pFmin ) / pFperStep;
  Serial.println(valueRotateC);
}


  PlanckTime = 299792458;
  Cmult = 1.5;
  valueC = PlanckTime / ( tuningFreqCalc * KHz ) * Cmult;
  Serial.print("Value C pF=");
  Serial.println(valueC);
}

