Using encoders in PROS

Hi, I’m very new to coding and was just wondering how to write a simple auton (drive forward and raise arm perhaps) using encoders in PROS. If you could give me an example that would be amazing! Thank you!

Check this tutorial: http://pros.cs.purdue.edu/tutorials/encoders/


Encoder encoder = encoderInit(1, 2);
int counts = encoderGet(encoder);
encoderReset();