Unable to control servo using MAVSDK

Action::set_actuator()

Above mavsdk’s MAV_CMD_DO_SET_ACTUATOR wrapper is not working.

I have connected my servo in aux 1 of cube orange plus AP. i have tried values from 1 to 12 for index, but not working. Am i missing or doing anything wrong about it?

Thanks in advance.
(i am using px4 v1.15.4)

Do the servos work other than MAVSDK by rc triggers? Or you right away jumped into using MAVSDK?

sorry for the late reply.

servo is tested and working. The main problem is that, MAV_CMD_DO_SET_ACTUATOR works after arming. Is there any other way to get it work even before and after arming the system?

Have you tried COM_PREARM_MODE = 2 ?