Browse Source

Added generic UART configuration.

Signed-off-by: Claudio Micheli <claudio@auterion.com>
sbg
Claudio Micheli 6 years ago committed by Beat Küng
parent
commit
d1da46ef46
  1. 14
      ROMFS/px4fmu_common/init.d/rc.sensors
  2. 3
      src/drivers/distance_sensor/cm8jl65/CMakeLists.txt
  3. 6
      src/drivers/distance_sensor/cm8jl65/module.yaml

14
ROMFS/px4fmu_common/init.d/rc.sensors

@ -93,20 +93,6 @@ then @@ -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

3
src/drivers/distance_sensor/cm8jl65/CMakeLists.txt

@ -36,5 +36,6 @@ px4_add_module( @@ -36,5 +36,6 @@ px4_add_module(
SRCS
cm8jl65.cpp
cm8jl65_parser.cpp
DEPENDS
MODULE_CONFIG
module.yaml
)

6
src/drivers/distance_sensor/cm8jl65/module.yaml

@ -0,0 +1,6 @@ @@ -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
Loading…
Cancel
Save