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

void init()

Calibrates the inertial sensor using gyroInit. This function is called automatically in the Positioner::init() function.

Example

// Create an inertial sensor object
Inertial sensor = Inertial(PORT16, 358.0, 358.0);

// Calibrate the inertial sensor
sensor.init();