Add files via upload

pull/12/head
MrDham 7 years ago committed by GitHub
parent 1a7e4941b6
commit a1f8a87620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      Open_Theremin_V3/application.cpp

@ -394,6 +394,7 @@ pitchfn1 = GetPitchMeasurement()-pitchfn;
pitchXn2=pitchXn1-((pitchXn1-pitchXn0)*pitchfn1)/(pitchfn1-pitchfn0); // new DAC value
delay(100);
pitchXn0 = pitchXn1;
@ -458,7 +459,7 @@ volumefn1 = GetVolumeMeasurement()-volumefn;
volumeXn2=volumeXn1-((volumeXn1-volumeXn0)*volumefn1)/(volumefn1-volumefn0); // calculate new DAC value
delay_NOP(44316);//44316=100ms
volumeXn0 = volumeXn1;
volumeXn1 = volumeXn2;

Loading…
Cancel
Save