PX4 Analog Input
Measure analog voltage applied to an ADC channel
Libraries:
UAV Toolbox Support Package for PX4 Autopilots /
PX4 Utility Blocks
Description
The PX4 Analog Input block measure the analog voltage at the ADC channels on the PX4 flight controller hardware, and outputs the voltages as a 1-by-12 array. Each value in the array corresponds to the analog voltage at a particular channel number.
For more information about mapping the channel numbers and the voltage array, see Index Numbers for Analog Channels on Pixhawk Series Controller Boards.
During Normal mode simulation, the block outputs zeroes.
During Connected I/O simulation, this block reads data from the peripherals of the hardware.
Ports
Output
Parameters
Version History
Introduced in R2018b