def _GetControlOutputLimits(output, lower_limit='lower_flap_limits',
                            upper_limit='upper_flap_limits'):
  return {_FLAPS[i]: (output[lower_limit][i], output[upper_limit][i])
          for i in range(len(_FLAPS))}