APM:Libraries
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | Static Private Attributes | Friends | List of all members
RC_Channels Class Reference

#include <RC_Channel.h>

Collaboration diagram for RC_Channels:
[legend]

Public Member Functions

 RC_Channels (void)
 

Static Public Member Functions

static RC_Channelrc_channel (uint8_t chan)
 
static uint16_t get_radio_in (const uint8_t chan)
 
static uint8_t get_radio_in (uint16_t *chans, const uint8_t num_channels)
 
static uint8_t get_valid_channel_count (void)
 
static int16_t get_receiver_rssi (void)
 
static bool read_input (void)
 
static void clear_overrides (void)
 
static bool receiver_bind (const int dsmMode)
 
static bool set_override (const uint8_t chan, const int16_t value)
 

Static Public Attributes

static const struct AP_Param::GroupInfo var_info []
 

Private Attributes

RC_Channel obj_channels [NUM_RC_CHANNELS]
 

Static Private Attributes

static RC_Channelchannels
 

Friends

class SRV_Channels
 

Detailed Description

Definition at line 137 of file RC_Channel.h.

Constructor & Destructor Documentation

◆ RC_Channels()

RC_Channels::RC_Channels ( void  )

Definition at line 105 of file RC_Channels.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ clear_overrides()

void RC_Channels::clear_overrides ( void  )
static

Definition at line 168 of file RC_Channels.cpp.

Here is the call graph for this function:

◆ get_radio_in() [1/2]

uint16_t RC_Channels::get_radio_in ( const uint8_t  chan)
static

Definition at line 118 of file RC_Channels.cpp.

Referenced by AP_ICEngine::engine_control(), SoaringController::is_active(), DataFlash_Class::Log_Write_RCIN(), loop(), AP_RSSI::read_channel_rssi(), GCS_MAVLINK::send_radio_in(), and AP_ICEngine::update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_radio_in() [2/2]

uint8_t RC_Channels::get_radio_in ( uint16_t *  chans,
const uint8_t  num_channels 
)
static

Definition at line 126 of file RC_Channels.cpp.

Here is the call graph for this function:

◆ get_receiver_rssi()

int16_t RC_Channels::get_receiver_rssi ( void  )
static

Definition at line 163 of file RC_Channels.cpp.

Referenced by AP_RSSI::read_receiver_rssi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_valid_channel_count()

uint8_t RC_Channels::get_valid_channel_count ( void  )
static

Definition at line 158 of file RC_Channels.cpp.

Referenced by AP_Tuning::check_input(), and GCS_MAVLINK::send_radio_in().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rc_channel()

static RC_Channel* RC_Channels::rc_channel ( uint8_t  chan)
inlinestatic

Definition at line 145 of file RC_Channel.h.

Referenced by AP_Tuning::check_input(), AP_Tuning::check_selector_switch(), SRV_Channels::copy_radio_in_out(), SRV_Channels::copy_radio_in_out_mask(), SRV_Channel::output_ch(), AP_Arming::rc_calibration_checks(), SRV_Channels::set_output_limit(), and setup().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_input()

bool RC_Channels::read_input ( void  )
static

Definition at line 145 of file RC_Channels.cpp.

Referenced by loop().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ receiver_bind()

bool RC_Channels::receiver_bind ( const int  dsmMode)
static

Definition at line 181 of file RC_Channels.cpp.

Referenced by GCS_MAVLINK::handle_rc_bind().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_override()

bool RC_Channels::set_override ( const uint8_t  chan,
const int16_t  value 
)
static

Definition at line 173 of file RC_Channels.cpp.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ SRV_Channels

friend class SRV_Channels
friend

Definition at line 139 of file RC_Channel.h.

Member Data Documentation

◆ channels

RC_Channel * RC_Channels::channels
staticprivate

◆ obj_channels

RC_Channel RC_Channels::obj_channels[NUM_RC_CHANNELS]
private

Definition at line 163 of file RC_Channel.h.

Referenced by RC_Channels().

◆ var_info

const AP_Param::GroupInfo RC_Channels::var_info
static

Definition at line 143 of file RC_Channel.h.

Referenced by RC_Channels().


The documentation for this class was generated from the following files: