Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

tnich

@tnich
About
Posts
3
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • maths question
    T tnich

    I found a couple of errors and edited my post with the equations to correct them.

    The Lounge help graphics question css com

  • maths question
    T tnich

    Simple 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.

    The Lounge help graphics question css com

  • Math symbology question
    T tnich

    Maybe it's a capital G.

    tnich

    The Lounge question com tools
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups