diff --git a/Lua_scripts/MultiChan.txt b/Lua_scripts/MultiChan.txt index e89b74a0..17c58710 100644 --- a/Lua_scripts/MultiChan.txt +++ b/Lua_scripts/MultiChan.txt @@ -171,6 +171,9 @@ 50,0,Redpine,Fast,0,sCH5,sCH6,sCH7,sCH8,sCH9,sCH10,sCH11,sCH12,sCH13,sCH14,sCH15,sCH16 50,1,Redpine,Slow,0,sCH5,sCH6,sCH7,sCH8,sCH9,sCH10,sCH11,sCH12,sCH13,sCH14,sCH15,sCH16 21,0,Futaba,SFHSS,0,CH5,CH6,CH7,CH8 +21,1,Futaba,TFHSS,0,CH5,CH6,CH7,CH8 +21,2,Futaba,TFH-SR,0,CH5,CH6,CH7,CH8,NB_1,NB_2,NB_3,NB_4 +21,3,Futaba,TF-Air,0,CH5,CH6,CH7,CH8,CH9,CH10,CH11,CH12,CH13,CH14,CH15,CH16 19,0,Shenqi,Cycle,1 68,0,Skyartec,Std,0,CH5,CH6,CH7 11,0,SLT,V1,0,Gear,Pitch diff --git a/Multiprotocol/Multi.txt b/Multiprotocol/Multi.txt index 8cce5212..af52f1ad 100644 --- a/Multiprotocol/Multi.txt +++ b/Multiprotocol/Multi.txt @@ -18,7 +18,7 @@ 18,MJXq,WLH08,X600,X800,H26D,E010,H26WH,PHOENIX 19,Shenqi 20,FY326,FY326,FY319 -21,Futaba,SFHSS +21,Futaba,SFHSS,TFHSS,TFH-SR,TF-Air 22,J6PRO 23,FQ777,124,XBM37 24,ASSAN diff --git a/Multiprotocol/Multiprotocol.h b/Multiprotocol/Multiprotocol.h index 7be6be87..f9204ce8 100644 --- a/Multiprotocol/Multiprotocol.h +++ b/Multiprotocol/Multiprotocol.h @@ -19,7 +19,7 @@ #define VERSION_MAJOR 1 #define VERSION_MINOR 3 #define VERSION_REVISION 4 -#define VERSION_PATCH_LEVEL 74 +#define VERSION_PATCH_LEVEL 75 #define MODE_SERIAL 0 diff --git a/Multiprotocol/TFHSS_cc2500.ino b/Multiprotocol/TFHSS_cc2500.ino index 687404a8..3d1456e4 100644 --- a/Multiprotocol/TFHSS_cc2500.ino +++ b/Multiprotocol/TFHSS_cc2500.ino @@ -39,7 +39,7 @@ // telemetry); then TFHSS_BIND_ACKED more with byte 1 bit 7 and its ID, // which make the receiver store the bind (R334SBS firmware). Failsafe: every 5 s a group of 4 frames, one // per channel: its F/S position, or hold (the 4PM Plus' default). -// The per channel "high speed" flags (3 ms output frames) are left off. +// In SR, the per channel "high speed"="narrow-band" flags in byte 9 (3 ms output frames) are driven by CH9..CH12 // // Air (TFHSS_AIR): 128 kbps 2-FSK (the S-FHSS modem), 17 bytes, a frame // every 15.04 ms; 16 channels in 9 slots of 11 bits (us - 880), a slot's @@ -355,6 +355,10 @@ static void __attribute__((unused)) TFHSS_surface_packet() packet[6] = ch[2] >> 4; packet[7] = ch[3]; packet[8] = (ch[3] >> 8) | 0x10; + // Bits 0..3: high speed flags of CH1..4 + // In SR, the narrow-band outputs ("SR channels" of Futaba radios) are set by CH9..CH12 + uint8_t nb = sr ? (Channel_AUX >> 4) & 0x0F : 0; + packet[9] = fs | nb; packet[9] = fs; // bits 0..3: the high speed flags packet[10] = e; packet[11] = (e >> 8) | slot << 4; diff --git a/Protocols_Details.md b/Protocols_Details.md index c768bf8d..68ce1ca1 100644 --- a/Protocols_Details.md +++ b/Protocols_Details.md @@ -1215,7 +1215,11 @@ CH1 to CH4 are sent every frame (3 ms), CH5 to CH8 one per frame. ### Sub_protocol TFHSS_SR - *2* T-FHSS SR (Super Response), the receiver bound in SR mode: frames every 1.2 ms, digital servos only. No telemetry. Otherwise as T-FHSS. -Servos in narrow-band mode (760 µs centre, the "SR channels" of Futaba radios) are not supported: set them to normal mode. +CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9|CH10|CH11|CH12 +---|---|---|---|---|---|---|---|---|---|---|--- +A|E|T|R|CH5|CH6|CH7|CH8|NB_1|NB_2|NB_3|NB_4 + +NB_1..4: Flags for Narrow-band servos (the "SR channels" of Futaba radios) associated to CH1..4 ### Sub_protocol TFHSS_AIR - *3* T-FHSS Air. Models: Futaba T-FHSS Air receivers like the R3006SB and R3008SB.