Ardupilot Mega

Hi all,

I am after some help with a project which is a big leap away from what i know.
My arduino knowledge is not great i have only ever used one for a 3d printer.

But my new project requires one im building a quad copter that i want to use the normal gadgets on like gyro accelerometer, gps and Telemetry. And i know that you can get a ArduPilot for the job, but i have a arduino mega and gps module, Ultrasonic Range Finder sitting here doing nothing but collect dust can i flash the script to the mega and attach the compnents that i requirer?