A system and method for battery protection. In some aspects, a power tool
battery pack operable to supply power to a power tool includes a
controller. The controller is operable to sample a battery pack condition
in at least a first sampling mode and a second sampling mode to produce a
plurality of measurements. The controller is further operable to average
the plurality of measurements to produce an averaged measurement, and
operable to modify operation of the battery pack when the averaged
measurement is outside a specified range.