PX4 PWM Output
Configure PWM outputs for servo motors and ESC control
Libraries:
UAV Toolbox Support Package for PX4 Autopilots /
PX4 Utility Blocks
Description
The PX4 PWM Output block helps you to configure the PWM output from the PX4 flight controller board. The block accepts time value (in microseconds) that represents the ON period of PWM signal for a particular channel, and passes the same to the corresponding PWM channels on the board.
The PX4 PWM Output block also accepts signals for arming the flight controller and enabling failsafe conditions.
Note
A limitation is observed when the PX4 PWM Output block is deployed on
the Pixhawk 1 board and if you select Use default startup script (rcS)
as the startup script option for the PX4 Autopilot during the Select System
Startup Script in PX4 step of the Hardware Setup process. Then, if you use
rcS
as the startup script for Pixhawk 1, the PWM block will not work.
This limitation is not present for Pixhawk 2.1 (Cube), Pixracer, and Pixhawk 4 boards. The
PWM block works after deployment on these Autopilots even when rcS
is
used as the startup script.
During Connected I/O simulation, this block writes data to the peripherals of the hardware.
Ports
Input
Output
Parameters
Version History
Introduced in R2018b