Added logic to arm quadcopter