From 0ccd2de12b0e0048396bc87089189ab898884a20 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Thu, 18 Feb 2016 02:25:39 -0200 Subject: [PATCH] AP_AHRS: fix use of undefined macro ../../libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp:63:5: warning: "WITH_GPS" is not defined [-Wundef] #if WITH_GPS ^ g_gps was not even declared so remove it. --- libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp b/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp index 254cd881dd..1909994fb5 100644 --- a/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp +++ b/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp @@ -60,9 +60,6 @@ void loop(void) heading = compass.calculate_heading(ahrs.get_rotation_body_to_ned()); // read compass at 10Hz last_compass = now; -#if WITH_GPS - g_gps->update(); -#endif } ahrs.update();