Controlling camera gimbal from software/code

I am working with an IF750 drone and I want to control the drone’s gimbal movement from code, not by remote control or any touch mechanism. I need to know how to control gimbal from source code (ROS or any other platform such as MAVROS/MAVLink). Some example would be helpful.