Skip to content
Snippets Groups Projects
Commit 2b700975 authored by tops4u's avatar tops4u Committed by Nuno Marques
Browse files

Added basic support for Lightware SF20/LW20 I2C connected LIDAR Devices

parent a6ce2b32
No related branches found
No related tags found
No related merge requests found
......@@ -260,6 +260,13 @@ SF1XX::init()
_conversion_interval = 50000;
break;
case 5:
/* SF20/LW20 (100m 48-388Hz) */
_min_distance = 0.001f;
_max_distance = 100.0f;
_conversion_interval = 20834;
break;
default:
DEVICE_LOG("invalid HW model %d.", hw_model);
return ret;
......
......@@ -1098,17 +1098,18 @@ PARAM_DEFINE_INT32(SENS_EN_MB12XX, 0);
PARAM_DEFINE_INT32(SENS_EN_TRONE, 0);
/**
* Lightware SF1xx laser rangefinder (i2c)
* Lightware SF1xx/SF20/LW20 laser rangefinder (i2c)
*
* @reboot_required true
* @min 0
* @max 4
* @max 5
* @group Sensor Enable
* @value 0 Disabled
* @value 1 SF10/a
* @value 2 SF10/b
* @value 3 SF10/c
* @value 4 SF11/c
* @value 5 SF/LW20
*/
PARAM_DEFINE_INT32(SENS_EN_SF1XX, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment