The Lidar driver repeatedly reads 10 bytes to get the check health response. If there is junk in the UART buffer this will cause the check to fail and immediately reset. Instead, the check should use a sliding window to throw out potential junk bytes at the beginning of the buffer.
The Lidar driver repeatedly reads 10 bytes to get the check health response. If there is junk in the UART buffer this will cause the check to fail and immediately reset. Instead, the check should use a sliding window to throw out potential junk bytes at the beginning of the buffer.