detect_pos
static int detect_pos(int *, int, int, int, int *, int *);
x_det = detect_pos(sc->sc_acc, sc->sc_x_sensors, sc->sc_theshold,
y_det = detect_pos(sc->sc_acc + PBMS_X_SENSORS, sc->sc_y_sensors,