Vex c++ potentiometer code for catapult

How do I program a catapult to move down in vex c++ with a potentiometer? The internal motor encoder isn’t accurate enough to work consistently.

[https://vexforum.com/t/c-programming-catapult-w-potentiometer/50981/1)

This is a forum post covering this exact topic.

However,


"PotentiometerName".value(rotationUnits::raw);

will give you the raw value of the pot from 0-4095 ticks. You can also use rotationUnits::deg or rotationUnits::rev to get the degrees or revolutions output. Good luck!