View Single Post
Old 02-28-2019, 07:54 AM   #50
felix_fetche
Member
felix_fetche is on a distinguished road
 
felix_fetche's Avatar
 
Join Date: Mar 2010
Location: Baia Mare, Romania.
Posts: 166
5 yr Member
Default

register 29, contains soc means "state of charge"
register 212 contains amp means charge/discharge current


soc=(int)((k_avg_soc*raw_avg_soc[2])/254);
if(summ_volt<76.5 && raw_avg_soc[2]==254) soc=0; //Case of Under Level SOC

amp=(256*(raw_avg_amp[1])+raw_avg_amp[2])/k_cell_amp;

float k_avg_soc=100;
float k_cell_amp=128;

Have FUN mates!
felix_fetche is offline   Reply With Quote