Arming drone without rc and using custom mode on hardware

I have not configured my rc with my drone in why and I want to arm it for testing with raspberry pi using uxrce dds.

Also I have made custom mode for my drone I want to switch to that mode with gesture detection