Design, Construction and Implementation of a Hardware-in-the-loop System for Testing Control Algorithms in Fixed Wing Aircraft