File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed
libraries/CurieIMU/examples Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff 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
5239void loop () {
Original file line number Diff line number Diff 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
5039void loop () {
You can’t perform that action at this time.
0 commit comments