AP_RCProtocol: add separate define for AP_RCPROTOCOL_SUMD_ENABLED
This commit is contained in:
parent
c9b39c6d32
commit
d59c9cc633
@ -54,7 +54,9 @@ void AP_RCProtocol::init()
|
||||
backend[AP_RCProtocol::FASTSBUS] = new AP_RCProtocol_SBUS(*this, true, 200000);
|
||||
#endif
|
||||
backend[AP_RCProtocol::DSM] = new AP_RCProtocol_DSM(*this);
|
||||
#if AP_RCPROTOCOL_SUMD_ENABLED
|
||||
backend[AP_RCProtocol::SUMD] = new AP_RCProtocol_SUMD(*this);
|
||||
#endif
|
||||
#if AP_RCPROTOCOL_SRXL_ENABLED
|
||||
backend[AP_RCProtocol::SRXL] = new AP_RCProtocol_SRXL(*this);
|
||||
#endif
|
||||
@ -447,8 +449,10 @@ const char *AP_RCProtocol::protocol_name_from_protocol(rcprotocol_t protocol)
|
||||
#endif
|
||||
case DSM:
|
||||
return "DSM";
|
||||
#if AP_RCPROTOCOL_SUMD_ENABLED
|
||||
case SUMD:
|
||||
return "SUMD";
|
||||
#endif
|
||||
#if AP_RCPROTOCOL_SRXL_ENABLED
|
||||
case SRXL:
|
||||
return "SRXL";
|
||||
|
@ -43,7 +43,9 @@ public:
|
||||
SBUS_NI = 3,
|
||||
#endif
|
||||
DSM = 4,
|
||||
#if AP_RCPROTOCOL_SUMD_ENABLED
|
||||
SUMD = 5,
|
||||
#endif
|
||||
#if AP_RCPROTOCOL_SRXL_ENABLED
|
||||
SRXL = 6,
|
||||
#endif
|
||||
@ -129,7 +131,9 @@ public:
|
||||
#if AP_RCPROTOCOL_IBUS_ENABLED
|
||||
case IBUS:
|
||||
#endif
|
||||
#if AP_RCPROTOCOL_SUMD_ENABLED
|
||||
case SUMD:
|
||||
#endif
|
||||
#if AP_RCPROTOCOL_SRXL_ENABLED
|
||||
case SRXL:
|
||||
#endif
|
||||
|
@ -44,7 +44,7 @@
|
||||
*/
|
||||
#include "AP_RCProtocol_config.h"
|
||||
|
||||
#if AP_RCPROTOCOL_ENABLED
|
||||
#if AP_RCPROTOCOL_SUMD_ENABLED
|
||||
|
||||
#include "AP_RCProtocol_SUMD.h"
|
||||
|
||||
@ -338,4 +338,4 @@ void AP_RCProtocol_SUMD::process_byte(uint8_t byte, uint32_t baudrate)
|
||||
_process_byte(AP_HAL::micros(), byte);
|
||||
}
|
||||
|
||||
#endif // AP_RCPROTOCOL_ENABLED
|
||||
#endif // AP_RCPROTOCOL_SUMD_ENABLED
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
#include "AP_RCProtocol_config.h"
|
||||
|
||||
#if AP_RCPROTOCOL_ENABLED
|
||||
#if AP_RCPROTOCOL_SUMD_ENABLED
|
||||
|
||||
#include "AP_RCProtocol_Backend.h"
|
||||
#include "SoftSerial.h"
|
||||
@ -73,4 +73,4 @@ private:
|
||||
SoftSerial ss{115200, SoftSerial::SERIAL_CONFIG_8N1};
|
||||
};
|
||||
|
||||
#endif // AP_RCPROTOCOL_ENABLED
|
||||
#endif // AP_RCPROTOCOL_SUMD_ENABLED
|
||||
|
@ -46,6 +46,9 @@
|
||||
#define AP_RCPROTOCOL_ST24_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED
|
||||
#endif
|
||||
|
||||
#ifndef AP_RCPROTOCOL_SUMD_ENABLED
|
||||
#define AP_RCPROTOCOL_SUMD_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED
|
||||
#endif
|
||||
|
||||
#ifndef AP_RCPROTOCOL_SBUS_NI_ENABLED
|
||||
#define AP_RCPROTOCOL_SBUS_NI_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED && AP_RCPROTOCOL_SBUS_ENABLED
|
||||
|
Loading…
Reference in New Issue
Block a user