NinjaFlight
|
Go to the source code of this file.
Data Structures | |
struct | rx_failsafe_chan_config |
struct | rx_channel_range_config |
struct | rx_output_config |
struct | rx_config |
Macros | |
#define | RX_MAX_MAPPABLE_RX_INPUTS 8 |
maximum number of inputs that we can remap More... | |
#define | RX_MAX_SUPPORTED_RC_CHANNELS (18) |
maximum supported channels when calling rx_get_channel More... | |
#define | RX_NON_AUX_CHANNEL_COUNT 4 |
number of channels that are treated as "essential" for basic control More... | |
#define | RSSI_SCALE_MIN 1 |
#define | RSSI_SCALE_MAX 255 |
#define | RSSI_SCALE_DEFAULT 30 |
#define | PWM_RANGE_ZERO 0 |
#define | PWM_RANGE_MIN 1000 |
#define | PWM_RANGE_MAX 2000 |
#define | PWM_RANGE_MIDDLE (PWM_RANGE_MIN + ((PWM_RANGE_MAX - PWM_RANGE_MIN) / 2)) |
#define | PWM_PULSE_MIN 750 |
#define | PWM_PULSE_MAX 2250 |
#define | RXFAIL_STEP_TO_CHANNEL_VALUE(step) (PWM_PULSE_MIN + 25 * step) |
#define | CHANNEL_VALUE_TO_RXFAIL_STEP(channelValue) ((constrain(channelValue, PWM_PULSE_MIN, PWM_PULSE_MAX) - PWM_PULSE_MIN) / 25) |
#define | MAX_RXFAIL_RANGE_STEP ((PWM_PULSE_MAX - PWM_PULSE_MIN) / 25) |
Typedefs | |
typedef enum rc_alias | rc_alias_e |
Enumerations | |
enum | rxFailsafeChannelMode_e { RX_FAILSAFE_MODE_AUTO = 0, RX_FAILSAFE_MODE_HOLD, RX_FAILSAFE_MODE_SET, RX_FAILSAFE_MODE_INVALID } |
enum | rc_alias { ROLL = 0, PITCH, YAW, THROTTLE, AUX1, AUX2, AUX3, AUX4, AUX5, AUX6, AUX7, AUX8 } |
Functions | |
struct rx_failsafe_chan_config | __attribute__ ((packed)) |
void | rx_config_set_mapping (struct rx_config *self, const char *input) |
Configures the rx using the specified channel layout and config. (channel layout example: AETR1234) More... | |
char | rx_config_channel_letter (uint8_t ch) |
Variables | |
uint8_t | mode |
uint8_t | step |
uint16_t | min |
uint16_t | max |
struct rx_channel_range_config | range [RX_NON_AUX_CHANNEL_COUNT] |
struct rx_failsafe_chan_config | failsafe [RX_MAX_SUPPORTED_RC_CHANNELS] |
uint8_t | rcmap [RX_MAX_MAPPABLE_RX_INPUTS] |
mapping of radio channels to internal RPYTA+ order More... | |
uint8_t | serialrx_provider |
type of UART-based receiver (0 = spek 10, 1 = spek 11, 2 = sbus). Must be enabled by FEATURE_RX_SERIAL first. More... | |
uint8_t | sbus_inversion |
default sbus (Futaba, FrSKY) is inverted. Support for uninverted OpenLRS (and modified FrSKY) receivers. More... | |
uint8_t | spektrum_sat_bind |
number of bind pulses for Spektrum satellite receivers More... | |
uint8_t | rssi_channel |
rssi channel number More... | |
uint8_t | rssi_scale |
scale of the rssi signal. Range [RSSI_SCALE_MIN;RSSI_SCALE_MAX] More... | |
uint8_t | rssi_ppm_invert |
if set then rssi signal is treated such that high value means low rssi More... | |
uint8_t | rcSmoothing |
Enable/Disable RC filtering. More... | |
uint16_t | midrc |
Some radios have not a neutral point centered on 1500. can be changed here. More... | |
uint16_t | mincheck |
minimum rc end More... | |
uint16_t | maxcheck |
maximum rc end More... | |
uint16_t | rx_min_usec |
minimum value of rx pulse from receiver (below this point we consider signal being corrupt) More... | |
uint16_t | rx_max_usec |
maximum value of rx pulse from receiver (above this point the signal is invalid and will trigger failsafe) More... | |
#define CHANNEL_VALUE_TO_RXFAIL_STEP | ( | channelValue | ) | ((constrain(channelValue, PWM_PULSE_MIN, PWM_PULSE_MAX) - PWM_PULSE_MIN) / 25) |
#define MAX_RXFAIL_RANGE_STEP ((PWM_PULSE_MAX - PWM_PULSE_MIN) / 25) |
#define PWM_PULSE_MAX 2250 |
#define PWM_PULSE_MIN 750 |
#define PWM_RANGE_MAX 2000 |
#define PWM_RANGE_MIDDLE (PWM_RANGE_MIN + ((PWM_RANGE_MAX - PWM_RANGE_MIN) / 2)) |
#define PWM_RANGE_MIN 1000 |
#define PWM_RANGE_ZERO 0 |
#define RSSI_SCALE_DEFAULT 30 |
#define RSSI_SCALE_MAX 255 |
#define RSSI_SCALE_MIN 1 |
#define RX_MAX_MAPPABLE_RX_INPUTS 8 |
maximum number of inputs that we can remap
#define RX_MAX_SUPPORTED_RC_CHANNELS (18) |
maximum supported channels when calling rx_get_channel
#define RX_NON_AUX_CHANNEL_COUNT 4 |
number of channels that are treated as "essential" for basic control
#define RXFAIL_STEP_TO_CHANNEL_VALUE | ( | step | ) | (PWM_PULSE_MIN + 25 * step) |
typedef enum rc_alias rc_alias_e |
enum rc_alias |
struct rx_failsafe_chan_config __attribute__ | ( | (packed) | ) |
char rx_config_channel_letter | ( | uint8_t | ch | ) |
void rx_config_set_mapping | ( | struct rx_config * | self, |
const char * | input | ||
) |
Configures the rx using the specified channel layout and config. (channel layout example: AETR1234)
uint16_t max |
uint16_t maxcheck |
maximum rc end
uint16_t midrc |
Some radios have not a neutral point centered on 1500. can be changed here.
uint16_t min |
uint16_t mincheck |
minimum rc end
uint8_t mode |
struct rx_channel_range_config range[RX_NON_AUX_CHANNEL_COUNT] |
uint8_t rcmap[RX_MAX_MAPPABLE_RX_INPUTS] |
mapping of radio channels to internal RPYTA+ order
uint8_t rcSmoothing |
Enable/Disable RC filtering.
uint8_t rssi_channel |
rssi channel number
uint8_t rssi_ppm_invert |
if set then rssi signal is treated such that high value means low rssi
uint8_t rssi_scale |
scale of the rssi signal. Range [RSSI_SCALE_MIN;RSSI_SCALE_MAX]
uint16_t rx_max_usec |
maximum value of rx pulse from receiver (above this point the signal is invalid and will trigger failsafe)
uint16_t rx_min_usec |
minimum value of rx pulse from receiver (below this point we consider signal being corrupt)
uint8_t sbus_inversion |
default sbus (Futaba, FrSKY) is inverted. Support for uninverted OpenLRS (and modified FrSKY) receivers.
uint8_t serialrx_provider |
type of UART-based receiver (0 = spek 10, 1 = spek 11, 2 = sbus). Must be enabled by FEATURE_RX_SERIAL first.
uint8_t spektrum_sat_bind |
number of bind pulses for Spektrum satellite receivers
uint8_t step |