mirror of https://github.com/ArduPilot/ardupilot
Compass: example sketch update for set_and_save_offsets
This commit is contained in:
parent
a778522cef
commit
cf7e1a6339
|
@ -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: ");
|
||||
|
|
Loading…
Reference in New Issue