what sensor are you trying to calibrate? Is it the compass or is it the accels? For compass follow this Testers needed for in-flight compass learning. Might depend on the firmware your running but you can do that for compass, for accels I would just calibrate the pixhawk without it being in the craft for that then reinstall it. All really depends on what sensor cal your talking about!