How autotune works on PixHawk? (logic)

Hi there! Does anyone know how exactly PID autotune works at PixHawk? Not how to autotune copter, fixed wing etc - but what logic is working inside? Does PID control loops model-based or not? Thank you!