calculate_drive_battery_state_of_charges

calculate_drive_battery_state_of_charges(drive_battery_capacity, initial_drive_battery_state_of_charge, times, drive_battery_currents)[source]

Calculates the state of charge of the drive battery [%].

Parameters:
  • drive_battery_capacity (float) – Drive battery capacity [Ah].
  • initial_drive_battery_state_of_charge (float) – Initial state of charge of the drive battery [%].
  • times (numpy.array) – Time vector [s].
  • drive_battery_currents (numpy.array) – Drive battery current vector [A].
Returns:

State of charge of the drive battery [%].

Return type:

numpy.array