Integration with PX4 is done via voxl_esc driver and modal_io_bridge
PWM Inputs / Outputs
Four independent PWM input / output pins are available, one pin per ESC channel
Use J3 connector (pins 2,3,4,5 corresponding to PWM 0,1,2,3)
PWM pin 0 is connected to ESC ID0, PWM1 -> ESC ID1, and so on (3.3V levels)
PWM input enabled in ESC firmware 39.13 or later, PWM output in 39.18 or later
Operating mode of PWM pins
Default mode of PWM pins is PWM input. In absence of UART communication, PWM pins can be used to control the ESC power using standard PWM signal (1-2ms)
Upon detecting any UART communication by ESC, PWM input is disabled until power reset
PWM output can be enabled by sending specific message to the ESC via UART interface
PWM output mode specifications
3 frequency modes (50hz, 200hz, 400hz)
enable or disable timeout (0.5s). If timeout is enabled, PWM output will be disabled (set to low state) after 0.5s of no commands
output range 0-2200 us with 0.05us resolution, special value of 2201us will force HIGH state (can be used as GPIO)