LDROBOT STP-23L UART laser ranging sensor module for XRobot.
This module reads the STP-23L UART byte stream in a background thread, syncs on the fixed frame header, verifies checksum, publishes complete 12-point ranging frames, and exposes a RamFS shell command for status output.
The UART name is a constructor argument, so projects may use other hardware aliases if needed.
stp23l_uartramfs
topic_name: default"stp23l_frame"task_stack_depth: default2048uart_name: default"stp23l_uart"frame_timeout_ms: default200
topic_name:STP23L::Frame, including 12 raw points, sensor timestamp, average distance, min / max distance, and valid point count
The module registers bin/stp23l in RamFS.
bin/stp23lorbin/stp23l status: print frame counters and latest distance statistics
- id: rangefinder
name: STP23L
constructor_args:
topic_name: "stp23l_frame"
task_stack_depth: 2048
uart_name: "stp23l_uart"
frame_timeout_ms: 200