refactored drone main codes arduino