Solar photovoltaic panel battery charging method