Battery voltage and current sampling calibration