PX4-Autopilot icon indicating copy to clipboard operation
PX4-Autopilot copied to clipboard

Rangefinder : Add Hypersen HPS167

Open limshoonkit opened this issue 9 months ago • 2 comments

Solved Problem

Cubepilot forum and my own problem, someone in my department randomly bought some obscure sensors and I have to interface it with px4 firmware.

Solution

Added Hypersen HPS167 rangefinder driver with UART interface using CM8JL65 example as reference.

Changelog Entry

Feature: Add Hypersen HPS167 support

New parameters:

  1. SENS_HPS167_CFG
  2. SENS_HPS167_R_0

Documentation: Need to update the doc Distance Sensors

Additional:

  1. The HPS167 also supports CAN bus; adding support for UAVCAN might be an option.
  2. There are other products in the series, such as the HPS166 and HPS167-L. May consider adding another parameter to switch support for different models of the sensor.

Datasheet can be found at Hypersen ToF Ranging Sensor

Test coverage

Tested with Holybro Pixhawk 6C mini using firmware version 1.15.0dev at TELEM1 and TELEM2 port. Need to disable default mavlink at TELEM1 port if enabling the sensor at TELEM1 port.

Context

Screenshot from 2024-05-17 22-50-23

hps167

https://github.com/PX4/PX4-Autopilot/assets/50212147/b5879dfb-8567-47ad-998a-3a80cbb6e523

limshoonkit avatar May 17 '24 15:05 limshoonkit