| ??? 02/25/03 10:20 Read: times |
#40015 - Determining which Quadrant a point falls |
Hi all
I am trying to determine a direction based on a sound wave hitting 2 sensors one on the left and one on the right hand side of the PCB, the math is pretty easy basically it is just Direction = asin(deltaTime/MaxTime) where maxtime is the maximum time it could possibly take to get from the right to the left sensor. deltatime is the actual time it took between the 2 sensors. Now I have diligently created a sine lookup table for the first 90deg and all is working well, I get an angle assuming that I am in quadrant 1, (right sensor receives first) if the left sensor receives first then I know that I am in quadrant 4. The problem is that I don't actually know whether the source is in front or behind me,(is the source at angle x in Quadrant 1 or 2) I hope that this makes sense, any ideas would be appreciated. I thought that I could replicate the Left Right layout for a front rear layout (giving for sensors) but I would prefer not to do this if possible> Regards Marshall |
| Topic | Author | Date |
| Determining which Quadrant a point falls | 01/01/70 00:00 | |
| RE: Determining which Quadrant a point falls | 01/01/70 00:00 | |
| RE: Determining which Quadrant a point f | 01/01/70 00:00 | |
| RE: Determining which Quadrant a point falls | 01/01/70 00:00 | |
| RE: Determining which Quadrant a point f | 01/01/70 00:00 | |
| RE: Determining which Quadrant a point f | 01/01/70 00:00 | |
| RE: Determining which Quadrant a point f | 01/01/70 00:00 | |
| RE: Determining which Quadrant a point f | 01/01/70 00:00 | |
| RE: Determining which Quadrant a point falls | 01/01/70 00:00 | |
| RE: Determining which Quadrant a point falls | 01/01/70 00:00 | |
| RE: Determining which Quadrant a point falls | 01/01/70 00:00 | |
| RE: Determining which Quadrant a point falls | 01/01/70 00:00 | |
RE: Determining which Quadrant a point falls | 01/01/70 00:00 |



