ESC calibration

when ever I arm the pixhawk it automatically calibrates ESC and does not function properly. I tried the calibration method shown on the net but it does not work goes in to calibration mode only after arming after calibration motors work fine but after disconnecting the battery it again goes back to square one and does not function properly. can any one help me