Compass: example sketch update for set_and_save_offsets

This commit is contained in:
Randy Mackay 2014-07-09 17:12:15 +09:00
parent a778522cef
commit cf7e1a6339
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ void setup() {
}
hal.console->println("init done");
compass.set_offsets(0,0,0); // set offsets to account for surrounding interference
compass.set_and_save_offsets(0,0,0,0); // set offsets to account for surrounding interference
compass.set_declination(ToRad(0.0)); // set local difference between magnetic north and true north
hal.console->print("Compass auto-detected as: ");