The problem of how to control an airplane required a programmed motion is considered. The actual motion is compared with the programmed one, and if the discrepancies are detected the control surfaces are deflected so as to counteract these deviations. This method is applied to a stunt flying "Cuban eight" and the control surface deflections necessary for the flying are computed.