PX4 development for PWM Output control

Hello,

We are looking to drive an actuator using the PWM out signal from the Autopilot. In this direction, we wanted to build an App for doing this & we are very new to development in PX4. Using the tutorials we are able to setup a toolchain for compilation & we were able to successfully try the examples provided towards this setup. We are using a Pixawk 2.4.8 in order to test the codes. Using these examples, in order to start the PWM, the following function will need to be used :
px4_ioctl(fd, PWM_SERVO_SET_MODE, PWM_SERVO_ENTER_TEST_MODE);

With the fd = px4_open(dev,0); & the const char *dev = PWM_OUTPUT_DEVICE_PATH;

However, we are getting an error that the “PWM_OUTPUT_DEVICE_PATH” is not declared & we wanted to know how can the path be provided.

With Regards,
ARK