mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Merge pull request #7370 from vodka-bears/frsky-rx-spi-a1-tryagain
Add constant option for A1 FrSky SPI (retry)
This commit is contained in:
commit
804c32556d
6 changed files with 44 additions and 10 deletions
|
@ -311,6 +311,12 @@ static const char * const lookupTableMax7456Clock[] = {
|
|||
};
|
||||
#endif
|
||||
|
||||
#ifdef USE_RX_FRSKY_SPI
|
||||
static const char * const lookupTableFrskySpiA1Source[] = {
|
||||
"VBAT", "EXTADC", "CONST"
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef USE_GYRO_OVERFLOW_CHECK
|
||||
static const char * const lookupTableGyroOverflowCheck[] = {
|
||||
"OFF", "YAW", "ALL"
|
||||
|
@ -473,6 +479,9 @@ const lookupTableEntry_t lookupTables[] = {
|
|||
#ifdef USE_MAX7456
|
||||
LOOKUP_TABLE_ENTRY(lookupTableMax7456Clock),
|
||||
#endif
|
||||
#ifdef USE_RX_FRSKY_SPI
|
||||
LOOKUP_TABLE_ENTRY(lookupTableFrskySpiA1Source),
|
||||
#endif
|
||||
#ifdef USE_RANGEFINDER
|
||||
LOOKUP_TABLE_ENTRY(lookupTableRangefinderHardware),
|
||||
#endif
|
||||
|
@ -1215,7 +1224,7 @@ const clivalue_t valueTable[] = {
|
|||
{ "frsky_spi_offset", VAR_INT8 | MASTER_VALUE, .config.minmax = { -127, 127 }, PG_RX_FRSKY_SPI_CONFIG, offsetof(rxFrSkySpiConfig_t, bindOffset) },
|
||||
{ "frsky_spi_bind_hop_data", VAR_UINT8 | MASTER_VALUE | MODE_ARRAY, .config.array.length = 50, PG_RX_FRSKY_SPI_CONFIG, offsetof(rxFrSkySpiConfig_t, bindHopData) },
|
||||
{ "frsky_x_rx_num", VAR_UINT8 | MASTER_VALUE, .config.minmax = { 0, 255 }, PG_RX_FRSKY_SPI_CONFIG, offsetof(rxFrSkySpiConfig_t, rxNum) },
|
||||
{ "frsky_spi_use_external_adc", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_RX_FRSKY_SPI_CONFIG, offsetof(rxFrSkySpiConfig_t, useExternalAdc) },
|
||||
{ "frsky_spi_a1_source", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_RX_FRSKY_SPI_A1_SOURCE }, PG_RX_FRSKY_SPI_CONFIG, offsetof(rxFrSkySpiConfig_t, a1Source) },
|
||||
#endif
|
||||
{ "led_inversion", VAR_UINT8 | MASTER_VALUE, .config.minmax = { 0, ((1 << STATUS_LED_NUMBER) - 1) }, PG_STATUS_LED_CONFIG, offsetof(statusLedConfig_t, inversion) },
|
||||
#ifdef USE_DASHBOARD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue