I have connected something similar to this:
http://a.co/cZa3iTc
Basically connect the black to GND, red to 3v3, and green to the ADC IN - use this diagram (from vedder's site) for reference:
http://vedder.se/wp-content/uploads/2015/08/VESC_ADC_Button.png
basically the throttle acts like a...