Rotation Sensor

Hi, everyone
How was your day?

Does anyone know how to code a rotation sensor? in Vexcode pro-V5
Because I am using it for showing it to the controller the speed of the shooter.

Thank you in advance
Have a great day

I recommend looking through VEX Help to see how to code the rotation sensor

I did but I couldn’t find anything that would help me.

not even the velocity function ?

 /** 
 * @brief Gets the current velocity of the absolute encoder.
 * @return Returns a double that represents the current velocity of the encoder in the units defined in the parameter.
 * @param units The measurement unit for the velocity.
 */
double          velocity( velocityUnits units );

3 Likes

That works,
Know I Have tried a new code