@sh.add_function(dsp, outputs=['drive_battery_currents'], weight=1)
def calculate_drive_battery_currents_v1(
drive_battery_capacity, times, drive_battery_state_of_charges):
"""
Calculate the drive battery current vector [A].
:param drive_battery_capacity:
Drive battery capacity [Ah].
:type drive_battery_capacity: float
:param times:
Time vector [s].
:type times: numpy.array
:param drive_battery_state_of_charges:
State of charge of the drive battery [%].
:type drive_battery_state_of_charges: numpy.array
:return:
Drive battery current vector [A].
:rtype: numpy.array
"""
from .service import calculate_service_battery_currents_v1 as func
return func(drive_battery_capacity, times, drive_battery_state_of_charges)