mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
AP_Compass: print I2C error count in test sketch
This commit is contained in:
parent
242ab5325f
commit
9b42a97de9
@ -99,11 +99,12 @@ void loop()
|
||||
offset[2] = -(max[2]+min[2])/2;
|
||||
|
||||
// display all to user
|
||||
Serial.printf("Heading: %.2f (%3u,%3u,%3u) ",
|
||||
Serial.printf("Heading: %.2f (%3u,%3u,%3u) I2cerr=%u ",
|
||||
ToDeg(heading),
|
||||
compass.mag_x,
|
||||
compass.mag_y,
|
||||
compass.mag_z);
|
||||
compass.mag_z,
|
||||
I2c.lockup_count());
|
||||
|
||||
// display offsets
|
||||
Serial.printf("\t offsets(%.2f, %.2f, %.2f)",
|
||||
|
Loading…
Reference in New Issue
Block a user