A method and apparatus comprising a refueling controller. The refueling controller is configured to receive a number of operator commands for moving a refueling boom on a tanker aircraft in a desired direction. The number of operator commands defines at least one of an azimuth movement and an elevation movement of the refueling boom during flight of the tanker aircraft. The refueling controller is further configured to generate a number of intermediate commands for moving the refueling boom in the desired direction as defined by the number of operator commands. The number of intermediate commands defines at least one of a roll movement and a pitch movement such that the refueling boom moves in the desired direction.