Measure distance in V5 Blocks

Hi,

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 think this would be how you would ‘record’ the distance in a variable:

First create a ‘Distance’ variable under variables:

image

Then you can try something like the following to save the Motor’s position into the variable:

image

1 Like

Thanks. That makes sense. I will give it a shot. My confusion was in setting up a drivetrain and not having access to turns or degrees (or any other distance measure).

Thanks.

1 Like