Add flags for KFPLAN Z61 BF109

This commit is contained in:
pascallanger 2023-08-12 13:16:39 +02:00
parent a8ae0a2bd1
commit eae1329dfe
3 changed files with 19 additions and 4 deletions

View File

@ -83,7 +83,12 @@ enum{
enum{ enum{
// flags going to packet[6] (F949G) // flags going to packet[6] (F949G)
FLAG_F949G_LIGHT = 0x01, FLAG_F949G_LIGHT = 0x01,
FLAG_F949G_RATES = 0x02,
FLAG_F949G_3D6G = 0x20, FLAG_F949G_3D6G = 0x20,
FLAG_BF109_RATES = 0x01, // short press right
FLAG_BF109_LIGHT = 0x02, // short press left
FLAG_BF109_UNK1 = 0x08, // long press right
FLAG_BF109_UNK2 = 0x10, // long press left
}; };
enum{ enum{
// flags going to packet[6] (PA18) // flags going to packet[6] (PA18)
@ -248,9 +253,11 @@ static void __attribute__((unused)) MT99XX_send_packet()
#endif #endif
break; break;
case F949G: case F949G:
packet[6] = 0x02 packet[6] = GET_FLAG( CH5_SW, FLAG_F949G_3D6G )
| GET_FLAG( CH5_SW, FLAG_F949G_3D6G ) | GET_FLAG( CH6_SW, FLAG_F949G_LIGHT ) //FLAG_BF109_RATES
| GET_FLAG( CH6_SW, FLAG_F949G_LIGHT ); | GET_FLAG(!CH7_SW, FLAG_F949G_RATES ) //FLAG_BF109_LIGHT
| GET_FLAG( CH8_SW, FLAG_BF109_UNK1 ) //BF109 long press right, temporary flag
| GET_FLAG( CH9_SW, FLAG_BF109_UNK2 ); //BF109 long press left, temporary flag
packet[7] = 0x00; packet[7] = 0x00;
break; break;
case PA18+8: case PA18+8:

View File

@ -19,7 +19,7 @@
#define VERSION_MAJOR 1 #define VERSION_MAJOR 1
#define VERSION_MINOR 3 #define VERSION_MINOR 3
#define VERSION_REVISION 3 #define VERSION_REVISION 3
#define VERSION_PATCH_LEVEL 27 #define VERSION_PATCH_LEVEL 28
#define MODE_SERIAL 0 #define MODE_SERIAL 0

View File

@ -1182,6 +1182,14 @@ CH1|CH2|CH3|CH4|CH5|CH6
---|---|---|---|---|--- ---|---|---|---|---|---
A|E|T|R|6G3D|Light A|E|T|R|6G3D|Light
Model: KFPLAN Z61 BF109
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9
---|---|---|---|---|---|---|---|---
A|E|T|R|-|Rate|Light|Unk1|Unk2
Unk1&2: long press right/left
## MT99XX2 - *92* ## MT99XX2 - *92*
### Sub_protocol PA18 - *92* ### Sub_protocol PA18 - *92*