VL53L4CX Dealing cleverly with multiple object ranging
Hi all, I'm back with another question re: our 5-TOF setup (VL53L4CX x 5, all 'looking' out of the centre of a spherical sculpture, trying to detect and interpret people approaching and interacting with it).
I posted earlier about trying to multiplex these 5 sensors to avoid crosstalk, and that sort-of-worked but introduced enough lag that it wasn't worth it -- we have carefully managed the positioning of the cones and I don't think we are getting much crosstalk, or at least, once we started throwing out rangeStatus 4, 12, and 11 we got pretty good results. We are basically only using rangeStatus 0 readings now.
Further note: we are looking for targets at about .75-2.5m, so right at the edge of where these results seem reliable.
My question is:
I'm seeing a bit of 'bouncing' where on one read a sensor will report 2 targets, then just one, then back to 2... since we're only taking the 0 rangeStatus readings, I'm going to assume that it's basically having trouble confirming a second or third target, and the distance readings are fluctuating between those for the returned targets.
Right now our code is designed to take the closest target as the 'best' but that gets problematic if the object keeps jumping back and forth, essentially disappearing for short blips. Can you suggest a good technique for either: setting the ranger to only pick one object? or ensuring that the returned objects are reported consistently in the same order i.e. object[0] is always the closest and we can ignore the others? ... or is there another way of dealing with this kind of transient jumping re number of objects?
I'm casting about here, going to try a bunch of things in my code to smooth, interpolate, average... but wondering if there's a clever way to deal with this already, perhaps in a setting I've overlooked?
PS: just discovering all the tuning_parameters.... a bit overwhelming, but more to try here as well I guess!

FYI this is a sketch of our basic setup for these TOFs
Thanks
<M>
