PWM as INPUTS on PIXHAWK

hello , i have a pixhawk board and i’am trying to connect a sensor ( HC-SR04) on my AUX PWM pins , but i can’t figure it out how to cinfure it as INPUTS.

you need to set the servo9_output and servo10_output to -1 to set aux 1 and 2 to GPIO then you can set the SR04 pins in the rangefinder options.

https://ardupilot.org/copter/docs/common-rangefinder-hcsr04.html

i couldn’t find the servo parameters on Qground control , are they named differently ?

They would only be named differently if you are not running Ardupilot…
It’s SERVOx_FUNCTION you are looking for: GPIO Wiki

1 Like

sorry its as dkemxr said its SERVOx_FUNCTION.

its px4 autopilot not ardupilot
image

Then you are on the wrong forum. Go here: PX4

1 Like