rc_input: add RC_PORT_CONFIG param to configure RC port

The parameter will only be available if the board defines an 'RC' serial
port in SERIAL_PORTS (in default.cmake).
This commit is contained in:
Beat Küng
2019-07-16 08:09:22 +02:00
parent b7a0e1ef03
commit 5fe4c61b42
6 changed files with 51 additions and 6 deletions
+2
View File
@@ -38,6 +38,8 @@ px4_add_module(
SRCS
RCInput.cpp
crsf_telemetry.cpp
MODULE_CONFIG
module.yaml
DEPENDS
rc
)
+12
View File
@@ -0,0 +1,12 @@
module_name: RC Input Driver
serial_config:
- command: set RC_INPUT_ARGS "-d ${SERIAL_DEV}"
port_config_param:
name: RC_PORT_CONFIG
group: Serial
default: RC
depends_on_port: RC
description_extended: |
Setting this to 'Disabled' will use a board-specific default port
for RC input.