@sh.add_function(dsp, outputs=['planetary_ratio'], weight=sh.inf(10, 5))
def default_planetary_ratio(has_motor_p2_planetary):
"""
Returns the default fundamental planetary speed ratio [-].
:param has_motor_p2_planetary:
Has the vehicle a motor in planetary P2?
:type has_motor_p2_planetary: bool
:return:
Fundamental planetary speed ratio [-].
:rtype: float
"""
if has_motor_p2_planetary:
return dfl.functions.default_planetary_ratio.ratio
return 0