mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 16:48:10 +00:00
AFHDS2A sub protocols and validation
This commit is contained in:
parent
4348f4b0d4
commit
6ad9fb8f27
@ -449,11 +449,11 @@ Serial: 100000 Baud 8e2 _ xxxx xxxx p --
|
||||
FORMAT_HONTAI 0
|
||||
FORMAT_JJRCX1 1
|
||||
FORMAT_X5C1 2
|
||||
sub_protocol==AFHDS2A
|
||||
FORMAT_IBUS+PWM 0
|
||||
FORMAT_IBUS+PPM 1
|
||||
FORMAT_SBUS+PWM 2
|
||||
FORMAT_SBUS+PPM 3
|
||||
sub_protocol==AFHDS2A
|
||||
PWM_IBUS 0
|
||||
PPM_IBUS 1
|
||||
PWM_SBUS 2
|
||||
PPM_SBUS 3
|
||||
Power value => 0x80 0=High/1=Low
|
||||
Stream[3] = option_protocol;
|
||||
option_protocol value is -127..127
|
||||
|
@ -72,6 +72,7 @@
|
||||
#undef DSM_TELEMETRY
|
||||
#undef SPORT_TELEMETRY
|
||||
#undef HUB_TELEMETRY
|
||||
#undef AFHDS2A_TELEMETRY
|
||||
#else
|
||||
#if not defined(DSM_CYRF6936_INO)
|
||||
#undef DSM_TELEMETRY
|
||||
@ -82,7 +83,10 @@
|
||||
#if not defined(FRSKYX_CC2500_INO)
|
||||
#undef SPORT_TELEMETRY
|
||||
#endif
|
||||
#if not defined(DSM_TELEMETRY) && not defined(HUB_TELEMETRY) && not defined(SPORT_TELEMETRY)
|
||||
#if not defined(AFHDS2A_A7105_INO)
|
||||
#undef AFHDS2A_TELEMETRY
|
||||
#endif
|
||||
#if not defined(DSM_TELEMETRY) && not defined(HUB_TELEMETRY) && not defined(SPORT_TELEMETRY) && not defined(AFHDS2A_TELEMETRY)
|
||||
#undef TELEMETRY
|
||||
#undef INVERT_TELEMETRY
|
||||
#endif
|
||||
|
@ -22,7 +22,9 @@
|
||||
/********************/
|
||||
//Uncomment one of the line below if you have a different module not based on the original Multi Atmega328p design which includes the 4-in-1.
|
||||
//If you don't know then leave them commented.
|
||||
//#define STM32_BOARD
|
||||
#ifdef __arm__
|
||||
#define STM32_BOARD // Let's automatically select this board if arm is selected since this is the only one for now...
|
||||
#endif
|
||||
|
||||
|
||||
/*******************/
|
||||
@ -257,7 +259,10 @@ const PPM_Parameters PPM_prot[15]= {
|
||||
FORMAT_JJRCX1
|
||||
FORMAT_X5C1
|
||||
MODE_AFHDS2A
|
||||
NONE
|
||||
PWM_IBUS
|
||||
PPM_IBUS
|
||||
PWM_SBUS
|
||||
PPM_SBUS
|
||||
*/
|
||||
|
||||
// RX_Num is used for model match. Using RX_Num values different for each receiver will prevent starting a model with the false config loaded...
|
||||
|
Loading…
x
Reference in New Issue
Block a user