Velocity

Velocity describes the rate at which the robot's position changes over time, including both its speed and direction of motion. It's a crucial concept for understanding and controlling the robot's movement during matches. The blocks in this section allow you to create velocity objects, change distance units, and obtain information from these objects.

DistanceUnit

Returns the distance unit used in the velocity object. Values can be CM, INCH, METER, MM.

XVeloc

Returns the X attribute of a given velocity object.

YVeloc

Returns the Y attribute of a given velocity object.

ZVeloc

Returns the Z attribute of a given velocity object.

AcquisitionTime

Returns the acquisition time of a given velocity object.

toDistanceUnit

Returns a velocity object based on the given velocity object after converting to the indicated units.

toText

Returns the velocity attributes of the velocity object as a formatted string. The format of the string is “Velocity: (X Y Z)units/s” where X, Y, and Z are the attributes of the velocity in the indicated units per second. For example, when X=1.2cm/s, Y=3.4 cm/s, and Z=5.6 cm/s, the string is “(1.200 3.400 5.600)cm/s”.

new Velocity

Returns a new velocity object with X=Y=Z=0. The default unit is CM.

new Velocity (expanded)

Returns a new velocity using the x, y and z values measured in the given units and the current system time as the acquisition time.