Development of Fault Detection and Diagnosis Techniques with Applications to Fixed-wing and Rotary-wing UAVs