# Modules Reference: Distance Sensor (Driver) ## afbrs50 Source: [drivers/distance_sensor/broadcom/afbrs50](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/distance_sensor/broadcom/afbrs50) ### Description Driver for the Broadcom AFBRS50. ### Examples Attempt to start driver on a specified serial device. ``` afbrs50 start ``` Stop driver ``` afbrs50 stop ``` ### Usage {#afbrs50_usage} ``` afbrs50 [arguments...] Commands: start Start driver -d Serial device [-r ] Sensor rotation - downward facing by default default: 25 stop Stop driver ``` ## gy_us42 Source: [drivers/distance_sensor/gy_us42](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/distance_sensor/gy_us42) ### Usage {#gy_us42_usage} ``` gy_us42 [arguments...] Commands: start [-I] Internal I2C bus(es) [-X] External I2C bus(es) [-b ] board-specific bus (default=all) (external SPI: n-th bus (default=1)) [-f ] bus frequency in kHz [-q] quiet startup (no message if no device found) [-R ] Sensor rotation - downward facing by default default: 25 stop status print status info ``` ## leddar_one Source: [drivers/distance_sensor/leddar_one](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/distance_sensor/leddar_one) ### Description Serial bus driver for the LeddarOne LiDAR. Most boards are configured to enable/start the driver on a specified UART using the SENS_LEDDAR1_CFG parameter. Setup/usage information: https://docs.px4.io/main/en/sensor/leddar_one.html ### Examples Attempt to start driver on a specified serial device. ``` leddar_one start -d /dev/ttyS1 ``` Stop driver ``` leddar_one stop ``` ### Usage {#leddar_one_usage} ``` leddar_one [arguments...] Commands: start Start driver -d Serial device [-r ] Sensor rotation - downward facing by default default: 25 stop Stop driver ``` ## lightware_laser_i2c Source: [drivers/distance_sensor/lightware_laser_i2c](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/distance_sensor/lightware_laser_i2c) ### Description I2C bus driver for Lightware SFxx series LIDAR rangefinders: SF10/a, SF10/b, SF10/c, SF11/c, SF/LW20, SF30/d. Setup/usage information: https://docs.px4.io/main/en/sensor/sfxx_lidar.html ### Usage {#lightware_laser_i2c_usage} ``` lightware_laser_i2c [arguments...] Commands: start [-I] Internal I2C bus(es) [-X] External I2C bus(es) [-b ] board-specific bus (default=all) (external SPI: n-th bus (default=1)) [-f ] bus frequency in kHz [-q] quiet startup (no message if no device found) [-a ] I2C address default: 102 [-R ] Sensor rotation - downward facing by default default: 25 stop status print status info ``` ## lightware_laser_serial Source: [drivers/distance_sensor/lightware_laser_serial](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/distance_sensor/lightware_laser_serial) ### Description Serial bus driver for the LightWare SF02/F, SF10/a, SF10/b, SF10/c, SF11/c Laser rangefinders. Most boards are configured to enable/start the driver on a specified UART using the SENS_SF0X_CFG parameter. Setup/usage information: https://docs.px4.io/main/en/sensor/sfxx_lidar.html ### Examples Attempt to start driver on a specified serial device. ``` lightware_laser_serial start -d /dev/ttyS1 ``` Stop driver ``` lightware_laser_serial stop ``` ### Usage {#lightware_laser_serial_usage} ``` lightware_laser_serial [arguments...] Commands: start Start driver -d Serial device [-R ] Sensor rotation - downward facing by default default: 25 stop Stop driver ``` ## lightware_sf45_serial Source: [drivers/distance_sensor/lightware_sf45_serial](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/distance_sensor/lightware_sf45_serial) ### Description Serial bus driver for the Lightware SF45/b Laser rangefinder. ### Examples Attempt to start driver on a specified serial device. ``` lightware_sf45_serial start -d /dev/ttyS1 ``` Stop driver ``` lightware_sf45_serial stop ``` ### Usage {#lightware_sf45_serial_usage} ``` lightware_sf45_serial [arguments...] Commands: start Start driver -d Serial device stop Stop driver ``` ## ll40ls Source: [drivers/distance_sensor/ll40ls](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/distance_sensor/ll40ls) ### Description I2C bus driver for LidarLite rangefinders. The sensor/driver must be enabled using the parameter SENS_EN_LL40LS. Setup/usage information: https://docs.px4.io/main/en/sensor/lidar_lite.html ### Usage {#ll40ls_usage} ``` ll40ls [arguments...] Commands: start [-I] Internal I2C bus(es) [-X] External I2C bus(es) [-b ] board-specific bus (default=all) (external SPI: n-th bus (default=1)) [-f ] bus frequency in kHz [-q] quiet startup (no message if no device found) [-a ] I2C address default: 98 [-R ] Sensor rotation - downward facing by default default: 25 regdump stop status print status info ``` ## ll40ls_pwm Source: [drivers/distance_sensor/ll40ls_pwm](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/distance_sensor/ll40ls_pwm) ### Description PWM driver for LidarLite rangefinders. The sensor/driver must be enabled using the parameter SENS_EN_LL40LS. Setup/usage information: https://docs.px4.io/main/en/sensor/lidar_lite.html ### Usage {#ll40ls_pwm_usage} ``` ll40ls_pwm [arguments...] Commands: start Start driver [-R ] Sensor rotation - downward facing by default default: 25 status Print driver status information stop Stop driver ``` ## mappydot Source: [drivers/distance_sensor/mappydot](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/distance_sensor/mappydot) ### Usage {#mappydot_usage} ``` mappydot [arguments...] Commands: start [-I] Internal I2C bus(es) [-X] External I2C bus(es) [-b ] board-specific bus (default=all) (external SPI: n-th bus (default=1)) [-f ] bus frequency in kHz [-q] quiet startup (no message if no device found) stop status print status info ``` ## mb12xx Source: [drivers/distance_sensor/mb12xx](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/distance_sensor/mb12xx) ### Usage {#mb12xx_usage} ``` mb12xx [arguments...] Commands: start [-I] Internal I2C bus(es) [-X] External I2C bus(es) [-b ] board-specific bus (default=all) (external SPI: n-th bus (default=1)) [-f ] bus frequency in kHz [-q] quiet startup (no message if no device found) set_address [-a ] I2C address default: 112 stop status print status info ``` ## pga460 Source: [drivers/distance_sensor/pga460](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/distance_sensor/pga460) ### Description Ultrasonic range finder driver that handles the communication with the device and publishes the distance via uORB. ### Implementation This driver is implemented as a NuttX task. This Implementation was chosen due to the need for polling on a message via UART, which is not supported in the work_queue. This driver continuously takes range measurements while it is running. A simple algorithm to detect false readings is implemented at the driver levelin an attemptto improve the quality of data that is being published. The driver will not publish data at all if it deems the sensor data to be invalid or unstable. ### Usage {#pga460_usage} ``` pga460 [arguments...] Commands: start [device_path] The pga460 sensor device path, (e.g: /dev/ttyS6) status stop help ``` ## srf02 Source: [drivers/distance_sensor/srf02](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/distance_sensor/srf02) ### Usage {#srf02_usage} ``` srf02 [arguments...] Commands: start [-I] Internal I2C bus(es) [-X] External I2C bus(es) [-b ] board-specific bus (default=all) (external SPI: n-th bus (default=1)) [-f ] bus frequency in kHz [-q] quiet startup (no message if no device found) [-a ] I2C address default: 112 [-R ] Sensor rotation - downward facing by default default: 25 stop status print status info ``` ## srf05 Source: [drivers/distance_sensor/srf05](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/distance_sensor/srf05) ### Description Driver for HY-SRF05 / HC-SR05 and HC-SR04 rangefinders. The sensor/driver must be enabled using the parameter SENS_EN_HXSRX0X. ### Usage {#srf05_usage} ``` srf05 [arguments...] Commands: start Start driver [-R ] Sensor rotation - downward facing by default default: 25 status Print driver status information stop Stop driver stop status print status info ``` ## teraranger Source: [drivers/distance_sensor/teraranger](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/distance_sensor/teraranger) ### Description I2C bus driver for TeraRanger rangefinders. The sensor/driver must be enabled using the parameter SENS_EN_TRANGER. Setup/usage information: https://docs.px4.io/main/en/sensor/rangefinders.html#teraranger-rangefinders ### Usage {#teraranger_usage} ``` teraranger [arguments...] Commands: start [-I] Internal I2C bus(es) [-X] External I2C bus(es) [-b ] board-specific bus (default=all) (external SPI: n-th bus (default=1)) [-f ] bus frequency in kHz [-q] quiet startup (no message if no device found) [-a ] I2C address default: 48 [-R ] Sensor rotation - downward facing by default default: 25 stop status print status info ``` ## tf02pro Source: [drivers/distance_sensor/tf02pro](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/distance_sensor/tf02pro) ### Usage {#tf02pro_usage} ``` tf02pro [arguments...] Commands: start [-I] Internal I2C bus(es) [-X] External I2C bus(es) [-b ] board-specific bus (default=all) (external SPI: n-th bus (default=1)) [-f ] bus frequency in kHz [-q] quiet startup (no message if no device found) [-a ] I2C address default: 16 [-R ] Sensor rotation - downward facing by default default: 25 stop status print status info ``` ## tfmini Source: [drivers/distance_sensor/tfmini](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/distance_sensor/tfmini) ### Description Serial bus driver for the Benewake TFmini LiDAR. Most boards are configured to enable/start the driver on a specified UART using the SENS_TFMINI_CFG parameter. Setup/usage information: https://docs.px4.io/main/en/sensor/tfmini.html ### Examples Attempt to start driver on a specified serial device. ``` tfmini start -d /dev/ttyS1 ``` Stop driver ``` tfmini stop ``` ### Usage {#tfmini_usage} ``` tfmini [arguments...] Commands: start Start driver -d Serial device [-R ] Sensor rotation - downward facing by default default: 25 status Driver status stop Stop driver status Print driver status ``` ## ulanding_radar Source: [drivers/distance_sensor/ulanding_radar](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/distance_sensor/ulanding_radar) ### Description Serial bus driver for the Aerotenna uLanding radar. Setup/usage information: https://docs.px4.io/main/en/sensor/ulanding_radar.html ### Examples Attempt to start driver on a specified serial device. ``` ulanding_radar start -d /dev/ttyS1 ``` Stop driver ``` ulanding_radar stop ``` ### Usage {#ulanding_radar_usage} ``` ulanding_radar [arguments...] Commands: start Start driver -d Serial device values: , default: /dev/ttyS3 [-R ] Sensor rotation - downward facing by default default: 25 stop Stop driver ``` ## vl53l0x Source: [drivers/distance_sensor/vl53l0x](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/distance_sensor/vl53l0x) ### Usage {#vl53l0x_usage} ``` vl53l0x [arguments...] Commands: start [-I] Internal I2C bus(es) [-X] External I2C bus(es) [-b ] board-specific bus (default=all) (external SPI: n-th bus (default=1)) [-f ] bus frequency in kHz [-q] quiet startup (no message if no device found) [-a ] I2C address default: 41 [-R ] Sensor rotation - downward facing by default default: 25 stop status print status info ``` ## vl53l1x Source: [drivers/distance_sensor/vl53l1x](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/distance_sensor/vl53l1x) ### Usage {#vl53l1x_usage} ``` vl53l1x [arguments...] Commands: start [-I] Internal I2C bus(es) [-X] External I2C bus(es) [-b ] board-specific bus (default=all) (external SPI: n-th bus (default=1)) [-f ] bus frequency in kHz [-q] quiet startup (no message if no device found) [-a ] I2C address default: 41 [-R ] Sensor rotation - downward facing by default default: 25 stop status print status info ```