Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void setup() {

// Enable dynamic calibration for desired sensors (accel, gyro, and mag)
// uncomment/comment out as needed to try various options
if (myIMU.setCalibrationConfig(SH2_CAL_ACCEL || SH2_CAL_GYRO || SH2_CAL_MAG) == true) { // all three sensors
if (myIMU.setCalibrationConfig(SH2_CAL_ACCEL | SH2_CAL_GYRO | SH2_CAL_MAG) == true) { // all three sensors
//if (myIMU.setCalibrationConfig(SH2_CAL_ACCEL || SH2_CAL_MAG) == true) { // Default settings
//if (myIMU.setCalibrationConfig(SH2_CAL_ACCEL) == true) { // only accel
Serial.println(F("Calibration Command Sent Successfully"));
Expand Down Expand Up @@ -241,4 +241,4 @@ void printAccuracyLevel(byte accuracyNumber)
else if(accuracyNumber == 1) Serial.print(F("Low"));
else if(accuracyNumber == 2) Serial.print(F("Medium"));
else if(accuracyNumber == 3) Serial.print(F("High"));
}
}