File tree 2 files changed +0
-24
lines changed
libraries/CurieIMU/examples
2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -34,19 +34,6 @@ void setup() {
34
34
35
35
// Set the accelerometer range to 2G
36
36
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 );
50
37
}
51
38
52
39
void loop () {
Original file line number Diff line number Diff line change @@ -34,17 +34,6 @@ void setup() {
34
34
35
35
// Set the accelerometer range to 250 degrees/second
36
36
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 );
48
37
}
49
38
50
39
void loop () {
You can’t perform that action at this time.
0 commit comments