Measure distance


Looking to measure distance travelled, store in a variable, and recall. Can’t seem to figure out how to measure the distance in the first place. Your help in doing so in V5 Blocks is appreciated.

I see that I can set the motor to travel a certain distance, but how can I have the motor report back the distance travelled?


I’m not sure exactly how this would work in V5 blocks, but there should be a block that says something like “(so and so motor) rotations (degrees)”. You can use this block to see the number of degrees that so and so motor has travelled.

Really though, if you tell a motor to travel a certain distance, there’s a pretty good chance that it will in fact travel that distance.