This is a student challenge. For a large turret, it is inconvenient to mount an encoder on centerline. It's much more convenient to use geared sensors, but the problem with that is sensing the full range of motion of the large gear without "wrapping around."
See IndirectDualMeasurement.java and IndirectDualMeasurementTest.java.
Write a few more tests, and implement a solution.