A Fault-Tolerant Architecture with Reconfigurable Path Planning Applied to an Unmanned Aerial Vehicle