mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 11:59:58 +03:00
Added FrSky X SPI RX protocol.
Original implementation from midelic. Added RX number support. Fixed (almost) SmartPort over SPI. Fixed indentation. Somewhat working telemetry. Fixed SmartPort. Work on SmartPort. Work on SmartPort. Working version without RX ringbuffer. Na, stuff it, ringbuffer is better. Fixed build. Make sure we don't lose packets. Made MSP over SmartPort over SPI work. Moved processing of incoming telemetry into 'handleTelemetry'. Improved telemetry buffering. Make sure telemetry polling is happening. Some cleanups. Make telemetry wait if MSP is pemding. Made MSP over SmartPort work. Fixes after rebase. Combined FrSky D and FrSky X. Combined FrSky D and FrSky X. Merged D and X.
This commit is contained in:
parent
a0c672ba69
commit
d3a6b3730f
22 changed files with 1708 additions and 848 deletions
|
@ -120,7 +120,8 @@ extern uint8_t __config_end;
|
|||
|
||||
#include "rx/rx.h"
|
||||
#include "rx/spektrum.h"
|
||||
#include "rx/frsky_d.h"
|
||||
#include "../rx/cc2500_frsky_common.h"
|
||||
#include "../rx/cc2500_frsky_x.h"
|
||||
|
||||
#include "scheduler/scheduler.h"
|
||||
|
||||
|
@ -2114,12 +2115,24 @@ static void cliBeeper(char *cmdline)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef USE_RX_FRSKY_D
|
||||
void cliFrSkyBind(char *cmdline){
|
||||
UNUSED(cmdline);
|
||||
frSkyDBind();
|
||||
}
|
||||
switch (rxConfig()->rx_spi_protocol) {
|
||||
#ifdef USE_RX_FRSKY_SPI
|
||||
case RX_SPI_FRSKY_D:
|
||||
case RX_SPI_FRSKY_X:
|
||||
frSkyBind();
|
||||
|
||||
cliPrint("Binding...");
|
||||
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
cliPrint("Not supported.");
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
static void printMap(uint8_t dumpMask, const rxConfig_t *rxConfig, const rxConfig_t *defaultRxConfig)
|
||||
{
|
||||
|
@ -3643,8 +3656,8 @@ const clicmd_t cmdTable[] = {
|
|||
CLI_COMMAND_DEF("flash_write", NULL, "<address> <message>", cliFlashWrite),
|
||||
#endif
|
||||
#endif
|
||||
#ifdef USE_RX_FRSKY_D
|
||||
CLI_COMMAND_DEF("frsky_bind", "initiate binding for FrSky RX", NULL, cliFrSkyBind),
|
||||
#ifdef USE_RX_FRSKY_SPI
|
||||
CLI_COMMAND_DEF("frsky_bind", "initiate binding for FrSky SPI RX", NULL, cliFrSkyBind),
|
||||
#endif
|
||||
CLI_COMMAND_DEF("get", "get variable value", "[name]", cliGet),
|
||||
#ifdef USE_GPS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue