This is a personal project of mine to construct a quadrotor, entirely coded by myself, running on an arduino. This is the code I use on my quadcopter, feel free to use this code as you need it.