serial drivers/modules: add yaml config files

This commit is contained in:
Beat Küng
2018-09-25 07:53:29 +02:00
parent dae292631c
commit b5e552924a
21 changed files with 212 additions and 32 deletions
@@ -39,5 +39,7 @@ px4_add_module(
frsky_data.cpp
sPort_data.cpp
frsky_telemetry.cpp
MODULE_CONFIG
module.yaml
)
@@ -0,0 +1,7 @@
module_name: FrSky Telemetry
serial_config:
- command: frsky_telemetry start -d ${SERIAL_DEV}
port_config_param:
name: TEL_FRSKY_CONFIG
group: Telemetry
@@ -36,6 +36,8 @@ px4_add_module(
COMPILE_FLAGS
SRCS
hott_telemetry.cpp
MODULE_CONFIG
module.yaml
DEPENDS
drivers__hott
)
@@ -0,0 +1,7 @@
module_name: HoTT Telemetry
serial_config:
- command: hott_telemetry start -d ${SERIAL_DEV}
port_config_param:
name: TEL_HOTT_CONFIG
group: Telemetry
@@ -39,5 +39,7 @@ px4_add_module(
SRCS
IridiumSBD.cpp
iridiumsbd_params.c
MODULE_CONFIG
module.yaml
DEPENDS
)
@@ -0,0 +1,15 @@
module_name: Iridium (with MAVLink)
serial_config:
- command: |
# add a sleep here to make sure that the module is powered
usleep 200000
if iridiumsbd start -d ${SERIAL_DEV}
then
mavlink start -d /dev/iridium -m iridium -b 115200
else
tune_control play -t 20
fi
port_config_param:
name: ISBD_CONFIG
group: Iridium SBD