Function rc_dsm_ch_raw#

Function Documentation#

int rc_dsm_ch_raw(int ch)#

Returns the pulse width in microseconds commanded by the transmitter for a particular channel.

The user can specify channels 1 through 9 but non-zero values will only be returned for channels the transmitter is actually using. The raw values in microseconds typically range from 900-2100us for a standard radio with default settings.

Parameters:

ch[in] channel (1-9)

Returns:

pulse width in microseconds if data is being transmitted, 0 if data is not being transmitted on that channel, -1 on error