Control a friendly flying machine by writing code