Footage Counter on a Sewer Camera

You will most definitely need an unspooling adjustment.
The calculus is muddied because the spool does not single stack. Fortunately, there's an easier way.

  1. Unspool 1 rotation and measure how much was unspooled and record
  2. Continue unspooling 1 rotation at a time, measuring the amount unspooled, and recording, until you have it all unspooled
  3. Store these values in order in an array
  4. Take your number of tick from the encoder, divide by 175, plug that value into the array as an index and you have a very accurate measurement, likely to be accurate to within 1 rotation's length.

To increase accuracy you can

  1. Modulate your reading by 175 to get a remainder from the division
  2. Take the value from the index above
  3. The value from the same index - 1
  4. Subtract the value from step 7 from the value from step 6, to get the value of the current rotation
  5. Multiply your remainder from step 5 by the value from step 8
  6. Divide that by 175 to get the measurement between rotations
  7. Add that to the value from step 4 and you will have a very accurate measurement

I know it reads like a set of stereo instructions. I will better illustrate later when I have a moment.