Flying machine common data structure and algorithm