pascallanger / DIY-Multiprotocol-TX-Module

Multiprotocol TX Module (or MULTI-Module) is a 2.4GHz transmitter module which controls many different receivers and models.
https://www.rcgroups.com/forums/showthread.php?t=2165676&goto=newpost
GNU General Public License v3.0
1.66k stars 441 forks source link

Update MT99xx_ccnrf.ino #1025

Closed rdba2k closed 1 month ago

rdba2k commented 1 month ago

add QF009 Su35 support to MT99XX protocol / H7 sub protocol

rdba2k commented 1 month ago

It is going to be replaced by better code

pascallanger commented 1 month ago

The code has proposed won't work anymore for the H7... packet[6] |= FLAG_MT_RATE1; -> it's taking the packet[6] previous flags which you are overwriting with your new code

rdba2k commented 1 month ago

I realized the issue. I will work on adding a new sub protocol Su35 but my code is not working yet.

I am thinking in MT99xx_ccnrf.ino

add

define MT99XX2_SUB_BASE 0x10

so this will change to if(protocol == PROTO_MT99XX2) sub_protocol|=0x08; -> sub_protocol |=MT99XX2_SUB_BASE;

and all PA18+8 -> PA18 | MT99XX2_SUB_BASE

Thus leaving subprotocol "8" to Su35.

Or you can made the change and I will learn what are the changes needed.

Thanks.