PX4's simulation

Hello, I want to add the function of simulating the px4’s flight situation based on the qgroundcontrol’s framwork.Is there any good idea?

http://dev.px4.io/simulation-gazebo.html
Start the simulation and then start qgroundcontrol and they should connect automatically.