Lines Matching defs:sensors
51 * bytes, 26 + 16 = 42 are sensors detecting pressure in the X or
53 * 15 inch PowerBooks, only the 16 first sensors in the X-direction
54 * are used. In the X-direction, the sensors correspond to byte
60 * in the Y direction, the sensors correspond to byte positions
73 * accumulator is large for sensors whose pressure has recently
79 * weighted average of the other sensors (the weights are the
124 /* The maximum number of sensors. */
157 * x_sensors: The number of sensors in the X-direction.
161 * y_sensors: The number of sensors in the Y-direction.
172 int x_sensors; /* The number of X-sensors. */
174 int y_sensors; /* The number of Y-sensors. */
221 int sc_x_sensors; /* Number of X-sensors. */
226 int sc_y_sensors; /* Number of Y-sensors. */
341 printf(": unexpected sensors configuration (%d:%d)\n",
481 * Reorder the sensor values so that all the X-sensors are before the
482 * Y-sensors in the natural order. Note that this might have to be
504 /* X-sensors. */
511 * so we ignore these sensors until we figure out
517 /* Y-sensors. */
626 detect_pos(int *sensors, int n_sensors, int threshold, int fact,
638 if (sensors[i] >= threshold) {
639 if (i == 0 || sensors[i - 1] < threshold)
641 s += sensors[i] - threshold;
642 w += (sensors[i] - threshold) * i;