mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2026-08-01 18:48:59 +00:00
RadioLink / DumboRC command packages for P Series (#1164)
* [Codex assisted] RadioLink / DumboRC command packages bridge Pass "special" packages to and from the module Allows to replicate "Set Failsafe", "Set Gyro Settings" and "Set Gyro Endpoints" from DDF-350 * RadioLink / DumboRC command packages TX / RX * RadioLink / DumboRC Helper script channel names Has max 10 channels Has no failsafe Older X series have gyro sense fixed to CH8, also can be used as regular channel * [Codex] DumboRC P Series settings script Add script that mimics interaction between DumboRC DDF-350 transmitter and P Series receivers * [Codex assisted] Split P series into separate subprotocol Split command exchange into separate subprotocol Update protocol documentation * [Codex] Improve LUA script Clean up, better event handling
This commit is contained in:
@@ -265,6 +265,11 @@ uint8_t packet_in[TELEMETRY_BUFFER_SIZE];//telemetry receiving packets
|
||||
uint8_t CONFIG_SerialRX_val[7];
|
||||
bool CONFIG_SerialRX=false;
|
||||
#endif
|
||||
#ifdef RLINK_HUB_TELEMETRY
|
||||
uint8_t RLINK_SerialRX_val[8];
|
||||
uint8_t RLINK_SerialRX_len=0;
|
||||
bool RLINK_SerialRX=false;
|
||||
#endif
|
||||
#endif // TELEMETRY
|
||||
|
||||
uint8_t multi_protocols_index=0xFF;
|
||||
@@ -1577,6 +1582,15 @@ void update_serial_data()
|
||||
CONFIG_SerialRX=true;
|
||||
}
|
||||
#endif
|
||||
#ifdef RLINK_HUB_TELEMETRY
|
||||
if(protocol==PROTO_RLINK && sub_protocol==RLINK_DUMBORC_P
|
||||
&& rx_len>27 && rx_len<=27+sizeof(RLINK_SerialRX_val))
|
||||
{//DumboRC P raw command payload from Lua/multiBuffer bridge
|
||||
RLINK_SerialRX_len=rx_len-27;
|
||||
memcpy(RLINK_SerialRX_val, (const void *)&rx_ok_buff[27], RLINK_SerialRX_len);
|
||||
RLINK_SerialRX=true;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
RX_DONOTUPDATE_off;
|
||||
|
||||
Reference in New Issue
Block a user