I am using PROS to program my robot and I am trying to use a potentiometer for our autonomous selector because our global variables were not working. I am having trouble initializing the potentiometer. When I go and try to initialize it, I am met with an error that says, "no matching constructor for initialization of 'pros::ADIPotentiometer' (aka 'pros::ADIAnalogIn')" I will leave my code below, any and all help would be greatly appreciated. I haved looked at the PROS API for initializing the potentiometer and did as it instructed but that did not help.
#define POTENTIOMETER_PORT 1 pros::ADIPotentiometer sensor(POTENTIOMETER_PORT);