comment
Merge branch 'master' of github.com:hamishcunningham/pi-tronics
snap 3.5+4: revert to 110% for low bat level
Jumper fix for 3.10
Differing config update for 3.10
Merge remote-tracking branch 'upstream/master'
Use of "bc" in calculating the BAT_GOOD value was wrong - scale default to 2, and so the division was being rounded down to the nearest integer.

In the worst case this meant BAT_GOOD and BAT_LOW were the same values which doens't work well.

pi@raspberrypi ~/mopi/pi-tronics/simbamon $ cc_wrap() { calculate_config $* ; ST=`supply_type $SUPPLY_TYPE` ; NC=`num_cells $NUM_CELLS`; BC=`bat_chemistry $CHEMISTRY`; echo "ST $ST; NC $NC; BC $BC; BAT_FLOOR $BAT_FLOOR; BAT_LOW $BAT_LOW; BAT_GOOD $BAT_GOOD; BAT_FULL $BAT_FULL"; }
pi@raspberrypi ~/mopi/pi-tronics/simbamon $
pi@raspberrypi ~/mopi/pi-tronics/simbamon $
pi@raspberrypi ~/mopi/pi-tronics/simbamon $ . simbamond.default
pi@raspberrypi ~/mopi/pi-tronics/simbamon $ cc_wrap 1 8 2
ST "Rechargeable batteries"; NC "Eight cells (e.g. eight AAs)"; BC "NiMH"; BAT_FLOOR 8.0; BAT_LOW 8.8; BAT_GOOD 9.8; BAT_FULL 11.2
pi@raspberrypi ~/mopi/pi-tronics/simbamon $ cc_wrap 2 6 3
ST "Non-rechargeable batteries"; NC "Six cells (e.g. a 9V PP3, or 12V car)"; BC "Alkaline"; BAT_FLOOR 4.8; BAT_LOW 5.2; BAT_GOOD 7.2; BAT_FULL 9.6
pi@raspberrypi ~/mopi/pi-tronics/simbamon $ cc_wrap 1 2 6
ST "Rechargeable batteries"; NC "Two cells (e.g. double 3.6V LiPo)"; BC "LiPo"; BAT_FLOOR 6.0; BAT_LOW 6.6; BAT_GOOD 6.6; BAT_FULL 8.4
pi@raspberrypi ~/mopi/pi-tronics/simbamon $
pi@raspberrypi ~/mopi/pi-tronics/simbamon $
pi@raspberrypi ~/mopi/pi-tronics/simbamon $ vi simbamond.default
pi@raspberrypi ~/mopi/pi-tronics/simbamon $ . simbamond.default
pi@raspberrypi ~/mopi/pi-tronics/simbamon $ cc_wrap 1 8 2
ST "Rechargeable batteries"; NC "Eight cells (e.g. eight AAs)"; BC "NiMH"; BAT_FLOOR 8.0; BAT_LOW 8.8; BAT_GOOD 10.000; BAT_FULL 11.2
pi@raspberrypi ~/mopi/pi-tronics/simbamon $ cc_wrap 2 6 3
ST "Non-rechargeable batteries"; NC "Six cells (e.g. a 9V PP3, or 12V car)"; BC "Alkaline"; BAT_FLOOR 4.8; BAT_LOW 5.2; BAT_GOOD 7.400; BAT_FULL 9.6
pi@raspberrypi ~/mopi/pi-tronics/simbamon $ cc_wrap 1 2 6
ST "Rechargeable batteries"; NC "Two cells (e.g. double 3.6V LiPo)"; BC "LiPo"; BAT_FLOOR 6.0; BAT_LOW 6.6; BAT_GOOD 7.500; BAT_FULL 8.4
pi@raspberrypi ~/mopi/pi-tronics/simbamon $