Open fukuchi opened 10 years ago
Hi,
Pressure value returned by getPoint() is always 0 in some environments. It is caused by a division-by-zero error.
138 float rtouch; 139 rtouch = z2; 140 rtouch /= z1; // = analogRead(_xm);
Here a quick hak: 140 rtouch /= (z1 + 1);
Hi,
Pressure value returned by getPoint() is always 0 in some environments. It is caused by a division-by-zero error.
138 float rtouch; 139 rtouch = z2; 140 rtouch /= z1; // = analogRead(_xm);
Here a quick hak: 140 rtouch /= (z1 + 1);