def average_both_eyes(eye_data):
    """
    Generates one eye coordinate from the right and left eye
    """
    x = (float(eye_data['left']['gaze']['x']) + float(eye_data['right']['gaze']['x'])) / 2.0
    y = (float(eye_data['left']['gaze']['y']) + float(eye_data['right']['gaze']['y'])) / 2.0
    return {'pos': {'x': x, 'y': y}, 'ts': eye_data['ts']}