I found a couple of errors and edited my post with the equations to correct them.
tnich
Posts
-
maths question -
maths questionSimple answer: Yes you can find the angle given measurements of the two discs. I will give you some details in a moment. More complicated answer: If you want an accurate estimate of the angle, you are out of luck. If you only plan to use the cosine of the angle, you can come up with something pretty good. Let's call theta the angle that the sensor deviates from dead center on the disc(s). Let y be the distance of the sensor from the center of the disc(s). You can use the law of cosines to build two equations involving y and theta. r_1^2 = m_1^2 + y^2 - 2*m_1*y*cos(theta) r_2^2 = m_2^2 + y^2 - 2*m_2*y*cos(theta) Solving them gets you y = sqrt(m_1*m_2 + (m_2*r_1^2 - m_1*r_2^2)/(m_2 - m_1)) cos(theta) = (m_1^2 - r_1^2)/(2*m_1*y) + y/(2*m_1) The problem with getting a good value for theta is that cos(theta) is going to be very close to 1.0000 for any small value of theta. So even a tiny measurement error will result in a incommensurately large error in theta. And cos(theta) may even come out to be greater than 1, in which case theta is undefined. However, it seems like a good bet that you can get by with just an estimate of cos(theta) for your calibration, since given a measurement m you can use the law of cosines to find the distance from the center.
-
Math symbology questionMaybe it's a capital G.
tnich