Hello, I would like to know if someone can help me know how to reset the encoder of a motor either in VEX Code V5 or VEX Code V5 Pro, I have tried some things but for now they have not worked.
I still don’t know a bit about the syntax in VEX Code v5 Pro, so I don’t know why “public” inside the “public void vex::motor::resetPosition(void)” and I also don’t know where to specify which motor reset
I linked the API reference for VEXcode Pro V5.
It can be a bit tricky to understand what it is saying, but in essence, there is a function in the motor class that resets the encoder.
You can use the resetPosition or resetRotation function like so:
These should both reset the internal motor encoder in VEXcode Pro V5.
VEXcode V5 is probably some similar command, but I don’t know what.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.