Potentiometer Sensing#
To make Potentiometer Sensor blocks appear in VEXcode V5, a 3-Wire Potentiometer Sensor must be configured in the Devices window.
For more information, refer to these articles:
Potentiometer Angle#
The Potentiometer Angle block is used to report the angular position of the Potentiometer.
([Potentiometer3A v] angle in [% v])
Choose which Potentiometer to use.
Choose which unit to report in: percent (%) or degrees.
In this example, the Potentiometer will print its current angular position to the Brain’s Screen.
when started :: hat events
print ([Potentiometer3A v] angle in[degrees v]) on [Brain v] ◀ and set cursor to next row