Rangefinder : Add Hypersen HPS167 #23154
Draft
+710
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
Documentation:
Need to update the doc Distance Sensors
Additional:
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
hps167_qgc.mp4