code: private VERTICAL_DIRECTION processVerticalDirection(float[] output, float midRangeHigh, float midRangeLow) {
  
  		output[1] = (output[1] < 0)? 0.0f : output[1];
  		
  		if (output[1] < midRangeLow) {
  
  			output[1] *= -1;
  			return VERTICAL_DIRECTION.UP;
  		} 
  		else if (output[1] > midRangeHigh) {
  
  			return VERTICAL_DIRECTION.DOWN;
  		} 
  		else {
  
  			return VERTICAL_DIRECTION.NONE;
  		}
  	}
docs: <p>Determines the {@link VERTICAL_DIRECTION} of the motion and trims the
  sensor reading on the Y-Axis to within the bounds handled by the the
  motion detector.
  
  @param output
  the smoothed sensor values
  
  @param midRangeHigh
  the upperbound of the mid-range which correlates with {@link VERTICAL_DIRECTION#NONE}
  
  @param midRangeLow
  the lowerbound of the mid-range which correlates with {@link VERTICAL_DIRECTION#NONE}
  
  @return the {@link VERTICAL_DIRECTION} of the motion