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

double heading()

Returns the heading of the robot in degrees.

Returns

A double containing the heading of the robot in degrees.

Example

positioner.setPos(PVector(0, 0), 90);
cout << positioner.heading() << endl;
//prints 90