129 for (uint8_t i = 0; i < read_channels; i++) {
134 if (read_channels < num_channels) {
135 memset(&chans[
NUM_RC_CHANNELS], 0,
sizeof(uint16_t) * (num_channels - read_channels));
138 return read_channels;
static uint8_t get_valid_channel_count(void)
int16_t get_radio_in() const
void set_pwm(int16_t pwm)
static const struct AP_Param::GroupInfo var_info[]
static bool receiver_bind(const int dsmMode)
RC_Channel obj_channels[NUM_RC_CHANNELS]
ssize_t read(int fd, void *buf, size_t count)
POSIX read count bytes from *buf to fileno fd.
RC_Channel manager, with EEPROM-backed storage of constants.
Object managing one RC channel.
const AP_HAL::HAL & hal
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
static RC_Channel * channels
static bool read_input(void)
AP_HAL::AnalogSource * chan
static int16_t get_receiver_rssi(void)
static uint16_t get_radio_in(const uint8_t chan)
static void clear_overrides(void)
#define AP_SUBGROUPINFO(element, name, idx, thisclazz, elclazz)
static bool set_override(const uint8_t chan, const int16_t value)
static void setup_object_defaults(const void *object_pointer, const struct GroupInfo *group_info)