Skip to main content
. 2023 Dec 21;11(1):0. doi: 10.3390/bioengineering11010005
Algorithm 1 Object detection algorithm
Require: d distance between the two sensors, t1 time of flight from sensor S1, t2 time of flight from sensor S2
1: /* Convert time of flight from sensors to distances */
2: r10.03438t1/2
3: r20.03438t2/2
4: /* Combine to calculate object coordinates */
5: x(r22d2r12)/(2d)
6: yr12x2
7: return x,y