Revert "remove duplicate code "
Revert "remove duplicate code "

This reverts commit 80f4f133a0fff71dcc8f52bf6503e1b733428f7b.

remspoor/qgroundcontrol,TheIronBorn/qgroundcontrol,caoxiongkun/qgroundcontrol,devbharat/qgroundcontrol,fizzaly/qgroundcontrol,dagoodma/qgroundcontrol,catch-twenty-two/qgroundcontrol,devbharat/qgroundcontrol,RedoXyde/PX4_qGCS,BMP-TECH/qgroundcontrol,BMP-TECH/qgroundcontrol,iidioter/qgroundcontrol,devbharat/qgroundcontrol,UAVenture/qgroundcontrol,UAVenture/qgroundcontrol,mihadyuk/qgroundcontrol,CornerOfSkyline/qgroundcontrol,devbharat/qgroundcontrol,iidioter/qgroundcontrol,UAVenture/qgroundcontrol,nado1688/qgroundcontrol,ethz-asl/qgc_asl,hejunbok/qgroundcontrol,kd0aij/qgroundcontrol,catch-twenty-two/qgroundcontrol,hejunbok/qgroundcontrol,CornerOfSkyline/qgroundcontrol,TheIronBorn/qgroundcontrol,CornerOfSkyline/qgroundcontrol,UAVenture/qgroundcontrol,greenoaktree/qgroundcontrol,Hunter522/qgroundcontrol,remspoor/qgroundcontrol,scott-eddy/qgroundcontrol,RedoXyde/PX4_qGCS,mihadyuk/qgroundcontrol,scott-eddy/qgroundcontrol,CornerOfSkyline/qgroundcontrol,ethz-asl/qgc_asl,TheIronBorn/qgroundcontrol,UAVenture/qgroundcontrol,LIKAIMO/qgroundcontrol,josephlewis42/UDenverQGC2,fizzaly/qgroundcontrol,kd0aij/qgroundcontrol,kd0aij/qgroundcontrol,greenoaktree/qgroundcontrol,cfelipesouza/qgroundcontrol,greenoaktree/qgroundcontrol,caoxiongkun/qgroundcontrol,fizzaly/qgroundcontrol,catch-twenty-two/qgroundcontrol,dagoodma/qgroundcontrol,scott-eddy/qgroundcontrol,josephlewis42/UDenverQGC2,jy723/qgroundcontrol,devbharat/qgroundcontrol,RedoXyde/PX4_qGCS,devbharat/qgroundcontrol,dagoodma/qgroundcontrol,CornerOfSkyline/qgroundcontrol,LIKAIMO/qgroundcontrol,iidioter/qgroundcontrol,ethz-asl/qgc_asl,hejunbok/qgroundcontrol,LIKAIMO/qgroundcontrol,RedoXyde/PX4_qGCS,fizzaly/qgroundcontrol,hejunbok/qgroundcontrol,BMP-TECH/qgroundcontrol,cfelipesouza/qgroundcontrol,lis-epfl/qgroundcontrol,greenoaktree/qgroundcontrol,RedoXyde/PX4_qGCS,iidioter/qgroundcontrol,scott-eddy/qgroundcontrol,nado1688/qgroundcontrol,TheIronBorn/qgroundcontrol,caoxiongkun/qgroundcontrol,Hunter522/qgroundcontrol,lis-epfl/qgroundcontrol,cfelipesouza/qgroundcontrol,ethz-asl/qgc_asl,dagoodma/qgroundcontrol,kd0aij/qgroundcontrol,josephlewis42/UDenverQGC2,kd0aij/qgroundcontrol,jy723/qgroundcontrol,UAVenture/qgroundcontrol,kd0aij/qgroundcontrol,Hunter522/qgroundcontrol,hejunbok/qgroundcontrol,Hunter522/qgroundcontrol,remspoor/qgroundcontrol,greenoaktree/qgroundcontrol,mihadyuk/qgroundcontrol,hejunbok/qgroundcontrol,TheIronBorn/qgroundcontrol,jy723/qgroundcontrol,CornerOfSkyline/qgroundcontrol,Hunter522/qgroundcontrol,scott-eddy/qgroundcontrol,jy723/qgroundcontrol,catch-twenty-two/qgroundcontrol,ethz-asl/qgc_asl,fizzaly/qgroundcontrol,iidioter/qgroundcontrol,scott-eddy/qgroundcontrol,catch-twenty-two/qgroundcontrol,catch-twenty-two/qgroundcontrol,caoxiongkun/qgroundcontrol,lis-epfl/qgroundcontrol,BMP-TECH/qgroundcontrol,nado1688/qgroundcontrol,remspoor/qgroundcontrol,Hunter522/qgroundcontrol,caoxiongkun/qgroundcontrol,mihadyuk/qgroundcontrol,BMP-TECH/qgroundcontrol,remspoor/qgroundcontrol,fizzaly/qgroundcontrol,mihadyuk/qgroundcontrol,iidioter/qgroundcontrol,lis-epfl/qgroundcontrol,jy723/qgroundcontrol,remspoor/qgroundcontrol,cfelipesouza/qgroundcontrol,dagoodma/qgroundcontrol,RedoXyde/PX4_qGCS,lis-epfl/qgroundcontrol,nado1688/qgroundcontrol,cfelipesouza/qgroundcontrol,josephlewis42/UDenverQGC2,LIKAIMO/qgroundcontrol,nado1688/qgroundcontrol,LIKAIMO/qgroundcontrol,jy723/qgroundcontrol,mihadyuk/qgroundcontrol,cfelipesouza/qgroundcontrol,LIKAIMO/qgroundcontrol,BMP-TECH/qgroundcontrol,greenoaktree/qgroundcontrol,TheIronBorn/qgroundcontrol,caoxiongkun/qgroundcontrol,nado1688/qgroundcontrol,dagoodma/qgroundcontrol