This thesis describes the development of an autonomous takeoff and landing system for a fixed-wing UAV using an existing low-cost flight control system. The system uses algorithms to calculate waypoints and variables needed for autonomous navigation during takeoff and landing. Hardware-in-the-loop simulations were used to validate the autonomous takeoff and landing sequences in different wind conditions and traffic pattern directions. The results demonstrate autonomous takeoff and landing capability for the UAV system.