<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def scale_to_control(x, axis_scale=350., min_v=-1.0, max_v=1.0):
 """Normalize raw HID readings to target range."""

    x = x / axis_scale
    x = min(max(x, min_v), max_v)
    return x