PX4-Autopilot
PX4-Autopilot copied to clipboard
Rangefinder : Add Hypersen HPS167
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:
- SENS_HPS167_CFG
- SENS_HPS167_R_0
Documentation: Need to update the doc Distance Sensors
Additional:
- The HPS167 also supports CAN bus; adding support for UAVCAN might be an option.
- 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
https://github.com/PX4/PX4-Autopilot/assets/50212147/b5879dfb-8567-47ad-998a-3a80cbb6e523