How to control Servo motor attached to pixhawk 4 using Dronecode SDK?

I don’t know about MAVROS.

I found this: Sending command to MAVLINK MAV_CMD_DO_SET_SERVO via MAVROS

but not much of DO_SET_SERVO in the MAVROS source: