Correct the computeSoC function for negative SoC
Add a manualSwitchSetting variable set in comms when a battery allocated manually to a panel.
Fix the 3PH charger to use the manually set battery
Similarly for the ICC charger. Also correct a number of bugs in the code.
Move some more common code out of charger specific source.
Tested to the point of all batteries going to rest phase.
Fix the portTickMs setting to 1000ms matching systick.