mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 18:13:34 +08:00
serial drivers/modules: add yaml config files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user