mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
AP_Compass: show compass count in example
This commit is contained in:
parent
c565d3b805
commit
c8b0970e61
@ -50,7 +50,7 @@ void setup() {
|
||||
hal.console->println("compass initialisation failed!");
|
||||
while (1) ;
|
||||
}
|
||||
hal.console->println("init done");
|
||||
hal.console->printf("init done - %u compasses detected\n", compass.get_count());
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user