mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
Fixed default RC map
This commit is contained in:
parent
1acf06c69c
commit
dcecf9dc67
1 changed files with 30 additions and 24 deletions
|
@ -94,8 +94,6 @@ uint32_t rcInvalidPulsPeriod[MAX_SUPPORTED_RC_CHANNEL_COUNT];
|
||||||
rxRuntimeConfig_t rxRuntimeConfig;
|
rxRuntimeConfig_t rxRuntimeConfig;
|
||||||
static uint8_t rcSampleIndex = 0;
|
static uint8_t rcSampleIndex = 0;
|
||||||
|
|
||||||
PG_REGISTER_WITH_RESET_TEMPLATE(rxConfig_t, rxConfig, PG_RX_CONFIG, 0);
|
|
||||||
|
|
||||||
#ifndef RX_SPI_DEFAULT_PROTOCOL
|
#ifndef RX_SPI_DEFAULT_PROTOCOL
|
||||||
#define RX_SPI_DEFAULT_PROTOCOL 0
|
#define RX_SPI_DEFAULT_PROTOCOL 0
|
||||||
#endif
|
#endif
|
||||||
|
@ -103,28 +101,36 @@ PG_REGISTER_WITH_RESET_TEMPLATE(rxConfig_t, rxConfig, PG_RX_CONFIG, 0);
|
||||||
#define SERIALRX_PROVIDER 0
|
#define SERIALRX_PROVIDER 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
PG_RESET_TEMPLATE(rxConfig_t, rxConfig,
|
PG_REGISTER_WITH_RESET_FN(rxConfig_t, rxConfig, PG_RX_CONFIG, 0);
|
||||||
.halfDuplex = 0,
|
void pgResetFn_rxConfig(rxConfig_t *rxConfig)
|
||||||
.serialrx_provider = SERIALRX_PROVIDER,
|
{
|
||||||
.rx_spi_protocol = RX_SPI_DEFAULT_PROTOCOL,
|
rxConfig->halfDuplex = 0;
|
||||||
.sbus_inversion = 1,
|
rxConfig->serialrx_provider = SERIALRX_PROVIDER;
|
||||||
.spektrum_sat_bind = 0,
|
rxConfig->rx_spi_protocol = RX_SPI_DEFAULT_PROTOCOL;
|
||||||
.spektrum_sat_bind_autoreset = 1,
|
rxConfig->sbus_inversion = 1;
|
||||||
.midrc = 1500,
|
rxConfig->spektrum_sat_bind = 0;
|
||||||
.mincheck = 1100,
|
rxConfig->spektrum_sat_bind_autoreset = 1;
|
||||||
.maxcheck = 1900,
|
rxConfig->midrc = 1500;
|
||||||
.rx_min_usec = 885, // any of first 4 channels below this value will trigger rx loss detection
|
rxConfig->mincheck = 1100;
|
||||||
.rx_max_usec = 2115, // any of first 4 channels above this value will trigger rx loss detection
|
rxConfig->maxcheck = 1900;
|
||||||
.rssi_channel = 0,
|
rxConfig->rx_min_usec = 885; // any of first 4 channels below this value will trigger rx loss detection
|
||||||
.rssi_scale = RSSI_SCALE_DEFAULT,
|
rxConfig->rx_max_usec = 2115; // any of first 4 channels above this value will trigger rx loss detection
|
||||||
.rssi_invert = 0,
|
rxConfig->rssi_channel = 0;
|
||||||
.rcInterpolation = RC_SMOOTHING_AUTO,
|
rxConfig->rssi_scale = RSSI_SCALE_DEFAULT;
|
||||||
.rcInterpolationChannels = 0,
|
rxConfig->rssi_invert = 0;
|
||||||
.rcInterpolationInterval = 19,
|
rxConfig->rcInterpolation = RC_SMOOTHING_AUTO;
|
||||||
.fpvCamAngleDegrees = 0,
|
rxConfig->rcInterpolationChannels = 0;
|
||||||
.max_aux_channel = DEFAULT_AUX_CHANNEL_COUNT,
|
rxConfig->rcInterpolationInterval = 19;
|
||||||
.airModeActivateThreshold = 1350
|
rxConfig->fpvCamAngleDegrees = 0;
|
||||||
);
|
rxConfig->max_aux_channel = DEFAULT_AUX_CHANNEL_COUNT;
|
||||||
|
rxConfig->airModeActivateThreshold = 1350;
|
||||||
|
|
||||||
|
#ifdef RX_CHANNELS_TAER
|
||||||
|
parseRcChannels("TAER1234", rxConfig);
|
||||||
|
#else
|
||||||
|
parseRcChannels("AETR1234", rxConfig);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
PG_REGISTER_ARRAY_WITH_RESET_FN(rxChannelRangeConfig_t, NON_AUX_CHANNEL_COUNT, rxChannelRangeConfigs, PG_RX_CHANNEL_RANGE_CONFIG, 0);
|
PG_REGISTER_ARRAY_WITH_RESET_FN(rxChannelRangeConfig_t, NON_AUX_CHANNEL_COUNT, rxChannelRangeConfigs, PG_RX_CHANNEL_RANGE_CONFIG, 0);
|
||||||
void pgResetFn_rxChannelRangeConfigs(rxChannelRangeConfig_t *rxChannelRangeConfigs)
|
void pgResetFn_rxChannelRangeConfigs(rxChannelRangeConfig_t *rxChannelRangeConfigs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue