mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-02 14:30:59 +08:00
feat(drivers/ptgl100): add JRT PTGL-100 UART rangefinder Add a driver for the JRT PTGL-100 laser rangefinder using its revised serial protocol, and expose range data through the standard sensor, telemetry and logging interfaces. Driver: - Distinguish an invalid range return (failed measurement) from a silent UART link, so missing sensor replies are reported as actionable diagnostics without being treated as a communication outage. - Surface module self-test faults. - Document the additive checksum collision, so an apparently valid spike can be traced to the protocol. - Cover missing-reply diagnostics and recovery in the virtual-UART integration test, and keep developer validation instructions beside the tests. - Bound SENS_PTGL100_ROT to the 0-25 range the driver accepts, and shorten its long description to match sibling drivers. Documentation: - Add a PTGL-100 page that follows the rangefinder template: Specifications, Hardware Setup (mounting, including the manufacturer's guidance; pinouts; wiring with pin numbers), Firmware Support (the driver is only built for boards that enable it), Configuration, Testing (linking the shared testing section), Where to Buy, and Developer Information (driver, validation, diagnostics, and a protocol summary matching the commands the driver sends). - State the baud requirement up front, and document the factory baud rate, manufacturer configuration support, connector type and orientation, EN grounding, ToF technology and operating limits. - Document the supplied cable pinout, including how to identify pin 1 and the pin order when preparing an adapter. - Document the verified Flycore TELEM3 setup, noting that the hardware test used a custom-made adapter cable rather than the cable in the manufacturer packing list. - Add cropped WebP module and cable photos and a compressed pinout drawing. - Link the parameters, module reference and general rangefinder setup, and direct readers to JRT for the manual instead of bundling it. - Rangefinder overview: add the sensor entry, version badge and NDAA status (~, since JRT makes no compliance statement). - Flycore board page: add a power note, cross-link the sensor page and link SENS_PTGL100_CFG. - Add a release note. Assisted-by: Codex Assisted-by: Codex:gpt-6.2-sol Assisted-by: Claude:claude-opus-5-5 Signed-off-by: lvguofei <1969354053@qq.com> Signed-off-by: Hamish Willee <hamishwillee@gmail.com> Co-authored-by: Hamish Willee <hamishwillee@gmail.com> Co-authored-by: Farhang <46557204+farhangnaderi@users.noreply.github.com>