Because we are making a cascaded control setup, the inner loop controls, pitch, roll, yaw, z. As this is an underactuated system, the desired pitch and roll angles are obtained by cascaded controllers, which make up the outer loop. This outer loop takes the x_error, y_error and measured yaw, and...