FLOAT CHARGE ALGORITHM
GOALS
	1) To achieve a daily charge to the battery bank between 95-100% SOC (state of charge) without excessive overcharging of the battery bank.
	2) To continually readjust the charging process based on current conditions with no user intervention. It is usually inadequate to use fixed charging parameters due to widely varying solar conditions from day to day.
	3) To provide gradual seasonal adjustments with no user intervention.
	4) To provide an alert should a successful charge has not been acheived in 3 days
VARIABLES
	FAILDAYS = #days since successful charge = set to 0 to start
	EA = end amps to exit absorb 
	EA%sys = End amps% to end absorb = set to 2% to start 
	ABSv = battery manufacturer recommended absorb voltage (temp compensated)
	FLOATv = battery manufacturer recommended float voltage (temp compensated)
	FLOATma = current into the battery bank @ FLOATv
	FLOAT95% = system unique predicted current @ 95%SOC @FLOATv
	FLOAT100% = system unique predicted current @ 100%SOC @FLOATv
	AHC = amphour capacity of the battery bank C/20 
	BANKamps = amps flowing into battery bank @ ABSORBv
	LOOP = number of that days retrys to achieve 95% SOC

Set FAILDAYS to FAILDAYS+1   Set LOOP=0
IF FAILDAYS > 4 Set ALERT = ON
BULK
Set EA = EA%sys times AHC
ABSORB
IF BANKamps < EA hold ABSORB for 15 minutes 
FLOAT
SETTLING  TIME ?
GET FLOATma 
IF FLOATma > FLOAT95% then LOOP=LOOP+1
	IF LOOP < 3 go to ABSORB
	IF LOOP > 3 set EA%sys = EA%sys -.1% go to Set EA
IF FLOATma < FLOAT100% then add .1% to EAsys
Set FAILDAYS = 0 Set ALERT = OFF
FLOAT