At the moment this is a rather theoretical problem that Im trying to figure out if it's possible to calculate. Actually this is more of a math problem than a c++ problem but I figured that there might be one or two math wizards lurking around this forum
Here is the scenario, you have a squared area with one ultrasonic receiver in each corner, the sides of the square has a fixed size which for the time beeing is 10 meters. Then an object is place inside this area with a ultrasonic sender. At a random time the object will send out a pulse which depending on the location of the object inside the square the four receivers will receive at different times. During this process there will a timer running that is unique for all the receivers, at the moment the recievers picks up the pulse sent the time will be registered.
So to recap, the object sends out a signal, the four receivers register the time it received the signal. Just like to add here that the receivers do not know when this signal was sent by the object, this is unknow. Im wondering if using these four registered times I can figure out the location of the object ?
From what I've been reading about ultrasonic waves it travels at the speed of approximately 344 meters/second. We know that the area is 10*10 meters.
The first registered time will not tell us much since we dont know when the pulse was originally sent, thats distance X. We do however know the difference between the first time-registered and the second time-registered, this also goes for third and fourth time-registered. So we could multiply the difference with the speed of the ultrasonic waves and we have part of the distance between the object and the corner, but we're still missing distance X.
Anyway, Ive been rambling on about this now for quite a while now. Hope this text is understandable. If anyone has any suggestion Im all ears
Thank you for taking the time to read this and sorry if this might not be suited question in a c++ forum.