12 const float binMin [32] = {-1, 0, 1, 2, 3, 4, 5, 6, 7, 8,
13 9, 10, 11, 12, 13, 14, 16, 18, 20, 22,
14 24, 26, 28, 31, 34, 37, 40, 44, 48, 52,
32 for (
unsigned i = 1;
i < 32;
i++) {
40 if (fAdc < 128)
return mValues [fAdc];
46 if (fAdc % 32 == 31)
return 0.5 * (3 *
mValues [fAdc] -
mValues [fAdc - 1]);
53 if (fAdc < 128)
return mValues [fAdc+1];
58 if (fAdc >= 32)
return false;
int adc(sample_type sample)
get the ADC sample (12 bits)
float lowEdge(unsigned fAdc) const
bool setLowEdges(const float fValue[32])
bool setLowEdge(float fValue, unsigned fAdc)
float center(unsigned fAdc) const
unsigned range(unsigned fAdc) const
float highEdge(unsigned fAdc) const