These three cams rock back and forth, they don't rotate fully. You can see the two positions they can be in. I need some way to know what position they are in. An encoder at the motor only tells me direction and speed.
Something like a hollow shaft potentiometer but I can't find anything that's not super expensive or the right size. Any other ideas how I can track the position? Worse case I might put an accelerometer/gyro combo sensor on each cam and try to track it that way but that's a little pricey and I'm not sure ultimately how accurate it will be if the entire robot will be moving around and experiencing other forces on it.