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

void init()

Initializes the inertial sensor then sets the position of the robot to the origin.

Example

positioner.init();
cout << positioner.position() << endl;
cout << positioner.heading() << endl;
//prints:
//Calibrating Sensor.................................
//[0, 0, 0]
//0