From b355c16141597fdb1d11267fb115bba9aeeddb34 Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Thu, 8 Feb 2024 16:08:54 +0100 Subject: [PATCH] Lanbao driver: correct rangefinder type to IR --- src/drivers/distance_sensor/cm8jl65/CM8JL65.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/distance_sensor/cm8jl65/CM8JL65.cpp b/src/drivers/distance_sensor/cm8jl65/CM8JL65.cpp index 8887408ff3..89f71ee1c0 100644 --- a/src/drivers/distance_sensor/cm8jl65/CM8JL65.cpp +++ b/src/drivers/distance_sensor/cm8jl65/CM8JL65.cpp @@ -113,7 +113,7 @@ CM8JL65::CM8JL65(const char *port, uint8_t rotation) : _px4_rangefinder.set_max_distance(7.9f); // Datasheet: 8.0m _px4_rangefinder.set_fov(0.0488692f); _px4_rangefinder.set_device_type(DRV_DIST_DEVTYPE_CM8JL65); - _px4_rangefinder.set_rangefinder_type(distance_sensor_s::MAV_DISTANCE_SENSOR_LASER); + _px4_rangefinder.set_rangefinder_type(distance_sensor_s::MAV_DISTANCE_SENSOR_INFRARED); } CM8JL65::~CM8JL65()