Skip to content

Commit 6fc749d

Browse files
committed
Remove calibration steps from accelerometer and gyro examples
1 parent af28e53 commit 6fc749d

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

libraries/CurieIMU/examples/Accelerometer/Accelerometer.ino

-13
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,6 @@ void setup() {
3434

3535
// Set the accelerometer range to 2G
3636
CurieIMU.setAccelerometerRange(CURIE_IMU_ACCELEROMETER_RANGE_2G);
37-
38-
Serial.println("About to calibrate accelerometer. Make sure your board is stable and upright");
39-
delay(5000);
40-
41-
// start accelerometer
42-
Serial.print("Starting accelerometer calibration...");
43-
CurieIMU.autoCalibrateAccelerometerOffset(X_AXIS, 0);
44-
CurieIMU.autoCalibrateAccelerometerOffset(Y_AXIS, 0);
45-
CurieIMU.autoCalibrateAccelerometerOffset(Z_AXIS, 1);
46-
Serial.println(" Done");
47-
48-
Serial.println("Enabling accelerometer offset compensation");
49-
CurieIMU.enableAccelerometerOffset(true);
5037
}
5138

5239
void loop() {

libraries/CurieIMU/examples/Gyro/Gyro.ino

-11
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,6 @@ void setup() {
3434

3535
// Set the accelerometer range to 250 degrees/second
3636
CurieIMU.setGyroRange(CURIE_IMU_GYRO_RANGE_250);
37-
38-
Serial.println("About to calibrate gyro. Make sure your board is stable and upright");
39-
delay(5000);
40-
41-
// start gyro
42-
Serial.print("Starting gyro calibration...");
43-
CurieIMU.autoCalibrateGyroOffset();
44-
Serial.println(" Done");
45-
46-
Serial.println("Enabling gyro offset compensation");
47-
CurieIMU.enableGyroOffset(true);
4837
}
4938

5039
void loop() {

0 commit comments

Comments
 (0)