Comments added.

This commit is contained in:
Troy
2024-03-25 12:15:31 -04:00
parent 977002f30c
commit cc01e38cad

View File

@@ -794,11 +794,11 @@ void FFTcode(void * parameter)
energy += fftResult[i];
}
energy *= energy;
energy /= 10000;
energy /= 10000; // scale down so we get 0 sometimes
lowFreqencyContent = fftResult[0];
// WLED-MM/TroyHacks: Ideally these numbers are roughly in the same rations
// ...but more importantly hitting a zero point at a regular interval
// WLED-MM/TroyHacks: Ideally these numbers are roughly in the same ratios
// ...but most importantly all values need to be hitting zero at a regular interval
//
// USER_PRINTF("ZCR: %3lu Energy: %5lu LFC: %4lu\n",(unsigned long)zeroCrossingCount,(unsigned long)energy,(unsigned long)lowFreqencyContent)