Let's consider the following scenario:
A flight is in trouble, the flight data recorder senses it(Anything the computer would sense and deem would result in an accident), it drains fuel from the tanks into its tank working with GPS to drain just enough fuel to take it to the manufacturers base, taking into consideration flight conditions, head wind or tail wind. It detaches from plane before impact, opens up its 6 arms with drone rotor propellers, fires its batteries starts flying at speed, once it reaches rotation speeds, it spreads its fixed wings and fires its jet engines because fixed wing aircraft are more efficient than rotor wings, it then drops its heavy rotor wing powering batteries to save fuel and flies to its manufacturer's base. It might even use jet engines to power it rotor wing phase
Version 2 would not detach but can cut itself out of the aircraft. If it senses water it will use its a compressed air tank that it will leave in the aircraft to inflate a rubber tube that will raise it to the surface floating so it can take off as a water plane/drone or rotor wing drone
Is a smart flight data recorder possible as described in this scenario? What are the drawbacks or impediments?