Skip to content

Instantly share code, notes, and snippets.

@jabbate19
Created February 28, 2021 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jabbate19/7890746e816a6d5c55207a577ef3a7a6 to your computer and use it in GitHub Desktop.
Save jabbate19/7890746e816a6d5c55207a577ef3a7a6 to your computer and use it in GitHub Desktop.
BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();
parameters.angleUnit = BNO055IMU.AngleUnit.RADIANS;
parameters.accelUnit = BNO055IMU.AccelUnit.METERS_PERSEC_PERSEC;
parameters.calibrationDataFile = "BNO055IMUCalibration.json"; // see the calibration sample opmode
parameters.loggingEnabled = true;
parameters.loggingTag = "IMU";
parameters.accelerationIntegrationAlgorithm = new JustLoggingAccelerationIntegrator();
imu = hardwareMap.get(BNO055IMU.class,"imu");
imu.initialize(parameters);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment