APM code on Arduino uno

Ok, I am about to get the DJI NAZA m V2. But I said, why not, when I can make a cheaper one. I already have the Gyro, Accelerometer, barometer etc. But can I download the APM code and just load into the Arduino Uno and just change the Gyro and etc addresses?? Thanks All help is appreciated (High school student) :smiley: :smiley: