Calibrating the voltage reading

hi is it safe to plug the batterie and the usb cable to the apm at the same time to calibrate the voltage

Yes. However, based on recent discoveries regarding the cause of burned out 3.3v regulators I wouldn’t hot plug anything while the USB is connected. In other words, first plug in the battery, then the USB. When disconnecting, first pull the USB, then the battery.