Cruise with adc

Hi is it possible to have a cruise control with one potentiometer setup as an adc. I want to kick my board and when my foot lay down it would turn the potentiometer so the vesc would use that signal as a cruise control.