From 181e4de34377ea032ecfb7c510f4268faef1dd91 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 23 Nov 2016 16:14:40 +0900 Subject: [PATCH] Rover: resolve compiler warning --- APMrover2/test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/APMrover2/test.cpp b/APMrover2/test.cpp index 2c7140fe24..cd4ba9dc8a 100644 --- a/APMrover2/test.cpp +++ b/APMrover2/test.cpp @@ -401,7 +401,7 @@ int8_t Rover::test_mag(uint8_t argc, const Menu::arg *argv) const Vector3f mag_ofs = compass.get_offsets(); const Vector3f mag = compass.get_field(); cliSerial->printf("Heading: %f, XYZ: %.0f, %.0f, %.0f,\tXYZoff: %6.2f, %6.2f, %6.2f\n", - (wrap_360_cd(ToDeg(heading) * 100)) /100, + (double)(wrap_360_cd(ToDeg(heading) * 100)) /100, (double)mag.x, (double)mag.y, (double)mag.z, (double)mag_ofs.x, (double)mag_ofs.y, (double)mag_ofs.z); } else {