Fixed the problem. If anyone also trying to develop their own GCS, you need to send heartbeat to plane continuously to acknowledge the plane it’s connected to GCS.
I am new to this stuff but this pymavlink heartbeat_send code here:
Hello @shiro I am new here as well. Could you please share with me how and where I would write a code to send the heartbeat continuously? Thank you so much for your help.