Flight controller for quadcopter using arduino mega 2560