Check the arducopter ESC auto calibration implementation. Commit hash: b2238b7c8a391351d6c09cf7ffbaad80396d4b37