Skip to main content Link Menu Expand (external link) Document Search Copy Copied

double xPosition()

Returns the x position of the robot in inches.

Returns

A double containing the x position of the robot in inches.

Example

positioner.setPos(PVector(0, 0), 0);
cout << positioner.xPosition() << endl;
// Prints 0