CreativeRobotics / EnactiveTorchRT2b

Enactive Torch hardware revision b
MIT License
0 stars 0 forks source link

LIDAR distance jumps to high values #1

Closed kercos closed 4 years ago

kercos commented 4 years ago

When opening the serial plotter we noticed that LIDAR distance signal (blue line) at random time (usually when you move the torch) jumps to very high levels (>>12000) for few data points. See attached screenshots. This problem does not occur with SONAR input.

normal peaks

CreativeRobotics commented 4 years ago

The LIDAR modules are supposed to send a checksum as part of a data packet, but when tested the checksum was always 0 - this may be a firmware bug in the devices. Without a checksum it is not possible to establish if a packet is valid or not so errors can appear as unusual values. I've attempted to mitigate this by capping the raw data values to within the measurement range of the device. If this still causes problems then some additional filtering may be required. (The files for this and other fixes will be released in the next few days).

I don't currently have a LIDAR module to test updated code with, but I have just ordered one.