diff --git a/libraries/AP_Compass/examples/AP_Compass_test/AP_Compass_test.cpp b/libraries/AP_Compass/examples/AP_Compass_test/AP_Compass_test.cpp index c28bc89809..d4dcb01695 100644 --- a/libraries/AP_Compass/examples/AP_Compass_test/AP_Compass_test.cpp +++ b/libraries/AP_Compass/examples/AP_Compass_test/AP_Compass_test.cpp @@ -84,7 +84,7 @@ void loop() compass.learn_offsets(); // capture min - const Vector3f &mag = compass.get_field(); + const Vector3f &mag = compass.get_field_milligauss(); if( mag.x < min[0] ) min[0] = mag.x; if( mag.y < min[1] )