mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Tools: add and use AP_RCPROTOCOL_ENABLED
This commit is contained in:
parent
ef657438fc
commit
0da4e3c9f3
@ -794,6 +794,7 @@ class sitl_periph_gps(sitl):
|
|||||||
HAL_RALLY_ENABLED = 0,
|
HAL_RALLY_ENABLED = 0,
|
||||||
AP_SCHEDULER_ENABLED = 0,
|
AP_SCHEDULER_ENABLED = 0,
|
||||||
CANARD_ENABLE_TAO_OPTION = 1,
|
CANARD_ENABLE_TAO_OPTION = 1,
|
||||||
|
AP_RCPROTOCOL_ENABLED = 0,
|
||||||
CANARD_ENABLE_CANFD = 1,
|
CANARD_ENABLE_CANFD = 1,
|
||||||
CANARD_MULTI_IFACE = 1,
|
CANARD_MULTI_IFACE = 1,
|
||||||
HAL_CANMANAGER_ENABLED = 0,
|
HAL_CANMANAGER_ENABLED = 0,
|
||||||
|
@ -176,10 +176,11 @@ BUILD_OPTIONS = [
|
|||||||
Feature('Plane', 'DEEPSTALL', 'HAL_LANDING_DEEPSTALL_ENABLED', 'Enable Deepstall Landing', 0, None),
|
Feature('Plane', 'DEEPSTALL', 'HAL_LANDING_DEEPSTALL_ENABLED', 'Enable Deepstall Landing', 0, None),
|
||||||
Feature('Plane', 'QAUTOTUNE', 'QAUTOTUNE_ENABLED', 'Enable QuadPlane Autotune mode', 0, "QUADPLANE"),
|
Feature('Plane', 'QAUTOTUNE', 'QAUTOTUNE_ENABLED', 'Enable QuadPlane Autotune mode', 0, "QUADPLANE"),
|
||||||
|
|
||||||
Feature('RC', 'RC_CRSF', 'AP_RCPROTOCOL_CRSF_ENABLED', "Enable CRSF RC Protocol", 0, None), # NOQA: E501
|
Feature('RC', 'RC_Protocol', 'AP_RCPROTOCOL_ENABLED', "Enable Serial RC Protocol support", 0, None), # NOQA: E501
|
||||||
Feature('RC', 'RC_SBUS', 'AP_RCPROTOCOL_SBUS_ENABLED', "Enable SBUS Protocol", 0, None), # NOQA: E501
|
Feature('RC', 'RC_CRSF', 'AP_RCPROTOCOL_CRSF_ENABLED', "Enable CRSF RC Protocol", 0, "RC_Protocol"), # NOQA: E501
|
||||||
Feature('RC', 'RC_SRXL', 'AP_RCPROTOCOL_SRXL_ENABLED', "Enable SRXL RC Protocol", 0, None), # NOQA: E501
|
Feature('RC', 'RC_SBUS', 'AP_RCPROTOCOL_SBUS_ENABLED', "Enable SBUS Protocol", 0, "RC_Protocol"), # NOQA: E501
|
||||||
Feature('RC', 'RC_SRXL2', 'AP_RCPROTOCOL_SRXL2_ENABLED', "Enable SRXL2 RC Protocol", 0, None), # NOQA: E501
|
Feature('RC', 'RC_SRXL', 'AP_RCPROTOCOL_SRXL_ENABLED', "Enable SRXL RC Protocol", 0, "RC_Protocol"), # NOQA: E501
|
||||||
|
Feature('RC', 'RC_SRXL2', 'AP_RCPROTOCOL_SRXL2_ENABLED', "Enable SRXL2 RC Protocol", 0, "RC_Protocol"), # NOQA: E501
|
||||||
|
|
||||||
Feature('Rangefinder', 'RANGEFINDER', 'AP_RANGEFINDER_ENABLED', "Enable Rangefinders", 0, None), # NOQA: E501
|
Feature('Rangefinder', 'RANGEFINDER', 'AP_RANGEFINDER_ENABLED', "Enable Rangefinders", 0, None), # NOQA: E501
|
||||||
Feature('Rangefinder', 'RANGEFINDER_ANALOG', 'AP_RANGEFINDER_ANALOG_ENABLED', "Enable Rangefinder - Analog", 0, "RANGEFINDER"), # NOQA: E501
|
Feature('Rangefinder', 'RANGEFINDER_ANALOG', 'AP_RANGEFINDER_ANALOG_ENABLED', "Enable Rangefinder - Analog", 0, "RANGEFINDER"), # NOQA: E501
|
||||||
|
@ -153,6 +153,7 @@ class ExtractFeatures(object):
|
|||||||
('AP_LANDINGGEAR_ENABLED', r'AP_LandingGear::init\b',),
|
('AP_LANDINGGEAR_ENABLED', r'AP_LandingGear::init\b',),
|
||||||
('AP_WINCH_ENABLED', 'AP_Winch::AP_Winch',),
|
('AP_WINCH_ENABLED', 'AP_Winch::AP_Winch',),
|
||||||
|
|
||||||
|
('AP_RCPROTOCOL_ENABLED', r'AP_RCProtocol::init\b',),
|
||||||
('AP_RCPROTOCOL_{type}_ENABLED', r'AP_RCProtocol_(?P<type>.*)::_process_byte\b',),
|
('AP_RCPROTOCOL_{type}_ENABLED', r'AP_RCProtocol_(?P<type>.*)::_process_byte\b',),
|
||||||
('AP_RCPROTOCOL_{type}_ENABLED', r'AP_RCProtocol_(?P<type>.*)::_process_pulse\b',),
|
('AP_RCPROTOCOL_{type}_ENABLED', r'AP_RCProtocol_(?P<type>.*)::_process_pulse\b',),
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user