Skip to content

Commit

Permalink
Added generic UART configuration.
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Micheli <claudio@auterion.com>
  • Loading branch information
cmic0 authored and bkueng committed Jan 15, 2019
1 parent ca0cd27 commit d1da46e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
14 changes: 0 additions & 14 deletions ROMFS/px4fmu_common/init.d/rc.sensors
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/drivers/distance_sensor/cm8jl65/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ px4_add_module(
SRCS
cm8jl65.cpp
cm8jl65_parser.cpp
DEPENDS
MODULE_CONFIG
module.yaml
)
6 changes: 6 additions & 0 deletions src/drivers/distance_sensor/cm8jl65/module.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d1da46e

Please sign in to comment.