@sh.add_function(dsp, outputs=['planetary_mean_efficiency'])
def default_planetary_mean_efficiency(has_motor_p2_planetary):
"""
Returns the default planetary mean efficiency [-].
:param has_motor_p2_planetary:
Has the vehicle a motor in planetary P2?
:type has_motor_p2_planetary: bool
:return:
Planetary mean efficiency [-].
:rtype: float
"""
if has_motor_p2_planetary:
return dfl.functions.default_planetary_mean_efficiency.efficiency
return 1