Connect more than 2 GPSes to ArduCopter

Hi I am trying to connect 3 GPSes on my Pixhack v5 (CUAVv5) running ArduCopter for the sake of redundancy.

In order to do so I made some changes to AP_GPS code: https://gist.github.com/219b16dc74de67ed2f1039b513753461

I did get GPS 3 detected in Mission Planner, but will these changes potentially break any other parts of the codes?

Thanks in advance,
Hoang