Hi,
I have an application where I am using two devices:
1) Absolute Encoder
2) Inclinometer
What I am doing is measuring the angle of a device in a single plane. My device is a pivoting arm which can move left/right and up/down. However, due to the mechanical setup, when the arm moves left to right, this also moves the arm up/down.
I'm not interested in my angle left/right other than using it as a measurement point. The only angle I am interested in, is from 0deg (vertical) to 90deg (horizontal). I know all of my input (calibration) values.
I can using my sensors calculate my angle accurately left/right and up/down. However, I a formula to compensate for one angle affecting the other. For example:
When my arm is pointing straight (left to right) the encoder reads 0.00 degrees, then if I push my arm down so it was at an angle of 40 degrees, my inclinometer would read 36.67degrees. If I now move my arm 40 degrees to the right (or left) then my inclinometer value would change to 39.09degrees, even though the vertical angle is actually still the same, this is because the arm is a fixed length and moves its location in free space, but the actual angle is the same.
I need to calculate a single output, from two varying inputs which are not always constant. I hope this makes sense.
thanks,
I have an application where I am using two devices:
1) Absolute Encoder
2) Inclinometer
What I am doing is measuring the angle of a device in a single plane. My device is a pivoting arm which can move left/right and up/down. However, due to the mechanical setup, when the arm moves left to right, this also moves the arm up/down.
I'm not interested in my angle left/right other than using it as a measurement point. The only angle I am interested in, is from 0deg (vertical) to 90deg (horizontal). I know all of my input (calibration) values.
I can using my sensors calculate my angle accurately left/right and up/down. However, I a formula to compensate for one angle affecting the other. For example:
When my arm is pointing straight (left to right) the encoder reads 0.00 degrees, then if I push my arm down so it was at an angle of 40 degrees, my inclinometer would read 36.67degrees. If I now move my arm 40 degrees to the right (or left) then my inclinometer value would change to 39.09degrees, even though the vertical angle is actually still the same, this is because the arm is a fixed length and moves its location in free space, but the actual angle is the same.
I need to calculate a single output, from two varying inputs which are not always constant. I hope this makes sense.
thanks,