@sh.add_function(dsp, outputs=['motor_p0_powers'])
def default_motor_p0_powers(times, has_motor_p0):
"""
Return zero power if the vehicle has not a motor P0 [kW].
:param times:
Time vector [s].
:type times: numpy.array
:param has_motor_p0:
Has the vehicle a motor in P0?
:type has_motor_p0: bool
:return:
Power at motor P0 [kW].
:rtype: numpy.array
"""
from .p4 import default_motor_p4_powers as func
return func(times, has_motor_p0)