How Do You Code Inertial Sensors?

I have some inertial sensors being shipped to me and I’ve been trying to find out how to code them. Can anyone give me some advice on where I can find out how to code the intertidal sensors or can anyone tell me how to code them?

From what I have found they are about the same as the 3wire gyros.

An example code:

inertial::quaternion  Inertial_quaternion; 
while(Gyro.rotation(degrees) < angle) {
      LeftMotor.spin(directionType::fwd, 50, velocityUnits::pct);
      RightMotor.spin(directionType::fwd, -50, velocityUnits::pct);