mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-04 05:05:19 +08:00
Added generic UART configuration.
Signed-off-by: Claudio Micheli <claudio@auterion.com>
This commit is contained in:
committed by
Beat Küng
parent
ca0cd27c6b
commit
d1da46ef46
@@ -93,20 +93,6 @@ then
|
|||||||
sf1xx start -a
|
sf1xx start -a
|
||||||
fi
|
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.
|
# Heater driver for temperature regulated IMUs.
|
||||||
if param compare SENS_EN_THERMAL 1
|
if param compare SENS_EN_THERMAL 1
|
||||||
then
|
then
|
||||||
|
|||||||
@@ -36,5 +36,6 @@ px4_add_module(
|
|||||||
SRCS
|
SRCS
|
||||||
cm8jl65.cpp
|
cm8jl65.cpp
|
||||||
cm8jl65_parser.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
|
||||||
Reference in New Issue
Block a user