Arduino not responding via serial communication

Nothing to do with your problem, but I am interested what the esc_calib() function does. All it appears to do is to run each motor slowly in turn for 1 second each. How is the calibration achieved ?