Quadcopter flight control application

Please could you tell me if I can write an app myself which is able to control my ardupilot quadcopter without using my remote control? Did anyone here try to do anything like this? Or it is unable to manage?