Anewhierarchical software architecture towards safety-critical aspects of a drone system