def scale_to_control(x, axis_scale=350., min_v=-1.0, max_v=1.0):
  """
  Normalize raw HID readings to target range.

  Args:
    x (int): Raw reading from HID
    axis_scale (float): (Inverted) scaling factor for mapping raw input value
    min_v (float): Minimum limit after scaling
    max_v (float): Maximum limit after scaling

  Returns:
    float: Clipped, scaled input from HID
  """
  x = x / axis_scale
  x = min(max(x, min_v), max_v)
  return x