 }
 
 void calculateStepsL() {                        // calculate needed steps for L
- // Process for non-linear variable inductor - need to ajust or change for different capacitor  
+ // Process for non-linear variable inductor - need to ajust or change for different inductor  
+ // y = -0.0299x2 + 1.3867x + 0.5894
+ float totalStepsL = 2964;                                                              // total motor steps for 1 rotation
+ float LturnsRequred = ( -0.0299 * valueL * valueL ) + ( 1.3867 * valueL ) + 0.5894;    // poly math
+ float valueRotateL = LturnsRequred * totalStepsL;
+ Serial.print("L turns requred=");
+ Serial.println(LturnsRequred);
+ Serial.print("steps L to rotate=");
+ Serial.println(valueRotateL);
  
 }
 

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;


  //    TFTscreen.text(dataPrintout, 50, 70);
  //  }

}
