From 2cc07d2899cd5b1a62a00a830ddc0e26aabd9253 Mon Sep 17 00:00:00 2001 From: Gustavo Jose de Sousa Date: Mon, 28 Sep 2015 16:57:09 -0300 Subject: [PATCH] ArduPlane: use compass get_{field,offsets}() functions Both functions are equivalent, so we're going to simply use get_{field,offsets}() instead of get_{field,offsets}_milligauss(). --- ArduPlane/test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduPlane/test.cpp b/ArduPlane/test.cpp index 6a81903f5d5..86f71600bb7 100644 --- a/ArduPlane/test.cpp +++ b/ArduPlane/test.cpp @@ -463,8 +463,8 @@ int8_t Plane::test_mag(uint8_t argc, const Menu::arg *argv) counter++; if (counter>20) { if (compass.healthy()) { - const Vector3f &mag_ofs = compass.get_offsets_milligauss(); - const Vector3f &mag = compass.get_field_milligauss(); + const Vector3f &mag_ofs = compass.get_offsets(); + const Vector3f &mag = compass.get_field(); cliSerial->printf_P(PSTR("Heading: %ld, XYZ: %.0f, %.0f, %.0f,\tXYZoff: %6.2f, %6.2f, %6.2f\n"), (wrap_360_cd(ToDeg(heading) * 100)) /100, (double)mag.x, (double)mag.y, (double)mag.z,