Refer to https://github.com/nusrobomaster/PX4-Autopilot/blob/rm2021/src/systemcmds/pwm/pwm.cpp for a start
Refer to https://github.com/nusrobomaster/PX4-Autopilot/blob/rm2021/src/systemcmds/pwm/pwm.cpp for a start