11 lines
523 B
Python
11 lines
523 B
Python
def report (vv, pack_voltage, pack_current, pack_health, pack_charge):
|
|
return (
|
|
"\n".join([
|
|
"Cell {} = {:.3f}\t\t\tCell {} = {:.3f}".format(str(i+1), vv[i], str(i+49), vv[i+48])
|
|
for i in range(48)]) +
|
|
"\nCell Voltage Sum = {:.2f}".format(sum(vv)) +
|
|
"\nPack Voltage = {:.2f} V" .format(pack_voltage) +
|
|
"\nPack Current = {:.2f} A" .format(pack_current) +
|
|
"\nState of Health = {:.2f} %" .format(pack_health) +
|
|
"\nState of Charge = {:.2f} %" .format(pack_charge) +
|
|
"\n")
|