Added generic UART configuration.

Signed-off-by: Claudio Micheli <claudio@auterion.com>
This commit is contained in:
Claudio Micheli
2019-01-07 10:20:31 +01:00
committed by Beat Küng
parent ca0cd27c6b
commit d1da46ef46
3 changed files with 8 additions and 15 deletions
-14
View File
@@ -93,20 +93,6 @@ then
sf1xx start -a
fi
# Lanbao PSK-CM8JL65-CC5 distance sensor
if param greater SENS_EN_CM8JL65 0
then
if param compare SENS_EN_CM8JL65 1
then
cm8jl65 start
fi
if param compare SENS_EN_CM8JL65 2
then
cm8jl65 start -d "/dev/ttyS1"
fi
fi
# Heater driver for temperature regulated IMUs.
if param compare SENS_EN_THERMAL 1
then
@@ -36,5 +36,6 @@ px4_add_module(
SRCS
cm8jl65.cpp
cm8jl65_parser.cpp
DEPENDS
MODULE_CONFIG
module.yaml
)
@@ -0,0 +1,6 @@
module_name: Lanbao PSK-CM8JL65-CC5
serial_config:
- command: cm8jl65 start -d ${SERIAL_DEV}
port_config_param:
name: SENS_CM8JL65_CFG
group: Sensors