A Math Question
On CodeProject site I found the following question 1
Hi all,
I need help in a math issue:
Let’s say I have 3 measuring devices which give me a distance. Mechanically those 3 sensors are mounted more or less in the right position, but we can’t be sure of the angle neither position the measuring devices are mounted. I have 3 Mastering parts (3 circumferences of a known radius) that I can mount into the machine at any moment and that I want to use to calibrate the system. The measuring error of the 3 measuring devices can be dismissed. This is a small diagram to represent the problem:
2 known master circumferences give me a distance [d1] between circumferences (d1 = radius 1 - radius 2). For each circumference the sensor will give me a different measure m1 and m2. Given the difference between r1-r2 and m2-m1 could I find the angle in which the measuring device is mounted?
Summarizing:
2 master circumferences mounted in the same center. 3 external measuring devices mounted completely unaligned with the center. I don’t know the measuring devices position. The red lines in the drawing are the vector lines the measuring device measures would be placed into. The real measures (in this drawing) would be the distance from the sensor to the position where the red line crosses a circle. Any help will be welcome… Thank you all…
Solution #
If sensor has coordinates $(x_0, y_0)$ and measures along a line with slope $s$, the equation of measuring line is:
Replacing this solution in equation (6) we write the magic formula:
Numerical example #
First lets make a CAD drawing:
And these are the numerical values:
$s = \tan(32.44^\circ)$; $x_0=2.531$; $y=1.609$; $R_1=1$; $R_2=1.5$; $R_3=2$; $d_1=1.999$; $d_2=1.499$; $d_3=0.999$
Our magic formula evaluates indeed to values close to 0 within the limits of our CAD tolerances:
Given
-
The link was
https://www.codeproject.com/Lounge.aspx?msg=5695861#xx5695861xx
. It is now a dead link as most of CodeProject site is dead. ↩︎