Files
PX4-Autopilot/docs/en/sensor/sfxx_lidar.md
T
Aaron1356 a5a7dd802c
Fuzzing / Fuzzing (push) Has been cancelled
Build all targets / Scan for Board Targets (push) Has been cancelled
Checks / build (NO_NINJA_BUILD=1 px4_fmu-v5_default) (push) Has been cancelled
Checks / build (NO_NINJA_BUILD=1 px4_sitl_default) (push) Has been cancelled
Checks / build (check_format) (push) Has been cancelled
Checks / build (check_newlines) (push) Has been cancelled
Checks / build (module_documentation) (push) Has been cancelled
Checks / build (px4_fmu-v2_default stack_check) (push) Has been cancelled
Checks / build (px4_sitl_allyes) (push) Has been cancelled
Checks / build (shellcheck_all) (push) Has been cancelled
Checks / build (tests) (push) Has been cancelled
Checks / build (tests_coverage) (push) Has been cancelled
Checks / build (validate_module_configs) (push) Has been cancelled
Clang Tidy / build (push) Has been cancelled
MacOS build / build (px4_fmu-v5_default) (push) Has been cancelled
MacOS build / build (px4_sitl) (push) Has been cancelled
Ubuntu environment build / Build and Test (ubuntu:22.04) (push) Has been cancelled
Ubuntu environment build / Build and Test (ubuntu:24.04) (push) Has been cancelled
Container build / Set Tags and Variables (push) Has been cancelled
Docs - Crowdin - Upload Guide sources (en) / upload-to-crowdin (push) Has been cancelled
Docs - Deploy PX4 User Guide to AWS / build (push) Has been cancelled
EKF Update Change Indicator / unit_tests (push) Has been cancelled
Failsafe Simulator Build / build (failsafe_web) (push) Has been cancelled
FLASH usage analysis / Analyzing px4_fmu-v5x (push) Has been cancelled
FLASH usage analysis / Analyzing px4_fmu-v6x (push) Has been cancelled
ITCM check / Checking nxp_mr-tropic (push) Has been cancelled
ITCM check / Checking nxp_tropic-community (push) Has been cancelled
ITCM check / Checking px4_fmu-v5x (push) Has been cancelled
ITCM check / Checking px4_fmu-v6xrt (push) Has been cancelled
MAVROS Mission Tests / build (map[mission:MC_mission_box vehicle:iris]) (push) Has been cancelled
MAVROS Offboard Tests / build (map[test_file:mavros_posix_tests_offboard_posctl.test vehicle:iris]) (push) Has been cancelled
Nuttx Target with extra env config / build (px4_fmu-v5_default) (push) Has been cancelled
Python CI Checks / build (push) Has been cancelled
ROS Integration Tests / build (push) Has been cancelled
ROS Translation Node Tests / Build and test (map[ros_version:humble ubuntu:jammy]) (push) Has been cancelled
ROS Translation Node Tests / Build and test (map[ros_version:jazzy ubuntu:noble]) (push) Has been cancelled
SITL Tests / Testing PX4 tailsitter (push) Has been cancelled
SITL Tests / Testing PX4 iris (push) Has been cancelled
SITL Tests / Testing PX4 standard_vtol (push) Has been cancelled
Build all targets / Build [${{ matrix.runner }}][${{ matrix.group }}] (push) Has been cancelled
Build all targets / Upload Artifacts (push) Has been cancelled
Container build / Build Container (amd64) (push) Has been cancelled
Container build / Build Container (arm64) (push) Has been cancelled
Container build / Deploy To Registry (push) Has been cancelled
Docs - Deploy PX4 User Guide to AWS / deploy (push) Has been cancelled
FLASH usage analysis / Publish Results (push) Has been cancelled
Docs - Crowdin - Download Guide Translations / Synchronize with Crowdin (ko) (push) Has been cancelled
Docs - Crowdin - Download Guide Translations / Synchronize with Crowdin (uk) (push) Has been cancelled
Docs - Crowdin - Download Guide Translations / Synchronize with Crowdin (zh-CN) (push) Has been cancelled
Handle stale issues and PRs / stale (push) Has been cancelled
[Feature] Adding I2C driver for the GRF250 and GRF500 models (#26425)
* Adding the GRF I2C driver

* I2C Driver Working

* Removing a lot of unnecessary code

* fixing names

* Changing the i2c Driver to be in the lightware laser

* remove the old driver

* formatting fix

* Adding Ligthware GRF to documentation
2026-02-06 15:26:13 -05:00

6.2 KiB

LightWare Lidar (SF1X/SF02/LW20/SF45)

LightWare develops a range of light-weight, general purpose, laser altimeters ("Lidar") suitable for mounting on UAVs. These are useful for applications including terrain following, precision hovering (e.g. for photography), warning of regulatory height limits, anti-collision sensing etc.

LightWare SF11/C LidarLightWare SF45 rotating Lidar

Supported Models

The following models are supported by PX4, and can be connected to either the I2C or Serial bus (the tables below indicates what bus can be used for each model).

Model Range (m) Bus Description
SF11/C 100 Serial or I2C bus
LW20/C 100 I2C bus Waterproofed (IP67) with servo for sense-and-avoid applications
SF30/D 200 I2C bus Waterproofed (IP67)
SF45/B 50 Serial Rotary Lidar (Used for Collision Prevention)
GRF250 250 I2C Gimbal Range Finder
GRF500 500 I2C Gimbal Range Finder

::: details Discontinued

The following models are supported by PX4 but are no longer available from the manufacturer.

Model Range Bus
SF02 50 Serial
SF10/A 25 Serial or I2C
SF10/B 50 Serial or I2C
SF10/C 100m Serial or I2C
LW20/B 50 I2C bus Waterproofed (IP67) with servo for sense-and-avoid applications

:::

I2C Setup

Check the tables above to confirm that which models can be connected to the I2C port.

Lidar Configuration (SF11/C)

The SF11/C hardware (only) does not ship with Pixhawk I2C compatibility enabled by default. To enable support, you have to download LightWare Studio and got to Parameters > Communication and tick mark I2C compatibility mode (Pixhawk)

LightWare SF11/C Lidar-I2C Config

This step is not required for the other supported Lightware rangefinders.

Hardware

Connect the Lidar the autopilot I2C port as shown below (in this case, for the Pixhawk 1).

SF1XX LIDAR to I2C connection

::: info Some older revisions cannot be used with PX4. Specifically they may be miss-configured to have an I2C address equal to 0x55, which conflicts with rgbled module. On Linux systems you may be able to determine the address using i2cdetect. If the I2C address is equal to 0x66 the sensor can be used with PX4. :::

Parameter Setup

Set the SENS_EN_SF1XX parameter to match the rangefinder model and then reboot.

VTOL vehicles may choose to also set SF1XX_MODE to 2: Disabled during VTOL fast forward flight.

Serial Setup

::: tip SF45/B setup is covered in the linked document. :::

Hardware

The lidar can be connected to any unused serial port (UART), e.g.: TELEM2, TELEM3, GPS2 etc.

Parameter Setup

Configure the serial port on which the lidar will run using SENS_SF0X_CFG. There is no need to set the baud rate for the port, as this is configured by the driver.

::: info If the configuration parameter is not available in QGroundControl then you may need to add the driver to the firmware. :::

Then set the SENS_EN_SF0X parameter to match the rangefinder model and reboot.

VTOL vehicles may choose to also set SF1XX_MODE to 2: Disabled during VTOL fast forward flight.

Further Information